Browse Source

Updated test for writing directories.

test_fixup
Travis Cunningham 9 years ago
parent
commit
4b835ce0d1
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tests.py

+ 2
- 1
tests.py View File

@@ -175,12 +175,13 @@ class TestZipWrite(unittest.TestCase):

f = file(ZIPPATH, mode='w')
z = ZipFile(f, 'w')
z.writepath(None, '/testdir', folder=True)
z.writepath('/home/user/testpath', pathname='/testdir', folder=True)
z.close()
f.close()

f = file(ZIPPATH, mode='r')
z = ZipFile(f, 'r')

assert len(z.entries) == 1
assert z.entries[0].isdir()
z.close()


Loading…
Cancel
Save