From 4b835ce0d142af91c34f427fd02bb0c829a508a0 Mon Sep 17 00:00:00 2001 From: Travis Cunningham Date: Thu, 7 May 2015 13:52:28 -0400 Subject: [PATCH] Updated test for writing directories. --- tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests.py b/tests.py index 0ea842b..14411a2 100644 --- a/tests.py +++ b/tests.py @@ -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()