Browse Source

Fix tests

test_fixup
Vadim Lebedev 2 years ago
parent
commit
84f25fe04f
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      tests.py

+ 7
- 0
tests.py View File

@@ -176,6 +176,13 @@ class TestZipWrite(unittest.TestCase):
z.writepath(f) z.writepath(f)
z.close() z.close()


def test_writepath_with_password(self):
z = ZipFile(self.f, 'w', password='test')
for fname in FILENAMES:
with open(os.path.join(TMPDIR, fname), 'r') as f:
z.writepath(f)
z.close()

def test_writepath_directory(self): def test_writepath_directory(self):
""" Test writing a directory. """ """ Test writing a directory. """
z = ZipFile(self.f, 'w') z = ZipFile(self.f, 'w')


Loading…
Cancel
Save