summaryrefslogtreecommitdiff
path: root/tests/zips_tests.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2017-01-23 20:39:05 +0000
committerMichael Williamson <mike@zwobble.org>2017-01-23 20:39:05 +0000
commite23fe00ff2a8fb3c796bfcc600dcc58dba902fa5 (patch)
treebab8590db32f6aa337d9b9fb24ecf329b9a2582e /tests/zips_tests.py
parenta47b5579acd8314d8543d306571dee93ac505667 (diff)
Move target URI handling out of zips module
Diffstat (limited to 'tests/zips_tests.py')
-rw-r--r--tests/zips_tests.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/zips_tests.py b/tests/zips_tests.py
deleted file mode 100644
index bef9895..0000000
--- a/tests/zips_tests.py
+++ /dev/null
@@ -1,19 +0,0 @@
-from nose.tools import istest, assert_equal
-
-from mammoth.zips import uri_to_zip_entry_name
-
-
-@istest
-def when_path_does_not_have_leading_slash_then_path_is_resolved_relative_to_base():
- assert_equal(
- "one/two/three/four",
- uri_to_zip_entry_name("one/two", "three/four"),
- )
-
-
-@istest
-def when_path_has_leading_slash_then_base_is_ignored():
- assert_equal(
- "three/four",
- uri_to_zip_entry_name("one/two", "/three/four"),
- )