aboutsummaryrefslogtreecommitdiff
path: root/tests/docx/uris_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/docx/uris_tests.py')
-rw-r--r--tests/docx/uris_tests.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/docx/uris_tests.py b/tests/docx/uris_tests.py
index 6b9c264..298a40a 100644
--- a/tests/docx/uris_tests.py
+++ b/tests/docx/uris_tests.py
@@ -1,18 +1,15 @@
-from nose.tools import istest, assert_equal
-
from mammoth.docx.uris import uri_to_zip_entry_name
+from ..testing import assert_equal
-@istest
-def when_path_does_not_have_leading_slash_then_path_is_resolved_relative_to_base():
+def test_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():
+def test_when_path_has_leading_slash_then_base_is_ignored():
assert_equal(
"three/four",
uri_to_zip_entry_name("one/two", "/three/four"),