Skip to content

Commit

Permalink
Add tests capturing expectation that a subdir with or without a trail…
Browse files Browse the repository at this point in the history
…ing slash is a dir.
  • Loading branch information
jaraco committed Jan 23, 2020
1 parent 0128ae4 commit 45db54b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test_zipp.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,14 @@ def test_iterdir_and_types(self):
i, = h.iterdir()
assert i.is_file()

def test_subdir_is_dir(self):
for alpharep in self.zipfile_alpharep():
root = zipp.Path(alpharep)
assert (root / 'b').is_dir()
assert (root / 'b/').is_dir()
assert (root / 'g').is_dir()
assert (root / 'g/').is_dir()

def test_open(self):
for alpharep in self.zipfile_alpharep():
root = zipp.Path(alpharep)
Expand Down

0 comments on commit 45db54b

Please sign in to comment.