aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJesse Jaggars <jjaggars@redhat.com>2012-04-05 15:34:58 -0500
committerJesse Jaggars <jjaggars@redhat.com>2012-04-05 15:34:58 -0500
commit4b351b751e2f847b12ebbe7922a39cdc0959ea2e (patch)
tree303fe7f3690853dd92ebcf32366e351fe23791d0 /tests
parent79b22b9dcca60f5d2b8d455d226a2bdb30c15fe2 (diff)
downloadsos-4b351b751e2f847b12ebbe7922a39cdc0959ea2e.tar.gz
adding more gathering for as7 and fixing an error where trying to add a unicode filename to a zipfile would fail
Diffstat (limited to 'tests')
-rw-r--r--tests/archive_tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/archive_tests.py b/tests/archive_tests.py
index 8a542f73..7f4d95e1 100644
--- a/tests/archive_tests.py
+++ b/tests/archive_tests.py
@@ -29,6 +29,12 @@ class ZipFileArchiveTest(unittest.TestCase):
self.check_for_file('test/tests/ziptest')
+ def test_add_unicode_file(self):
+ self.zf.add_file(u'tests/')
+ self.zf.close()
+
+ self.check_for_file('test/tests/ziptest')
+
def test_add_dir(self):
self.zf.add_file('tests/')
self.zf.close()