aboutsummaryrefslogtreecommitdiff
path: root/tests/docx/uris_tests.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2022-11-25 22:50:05 +0000
committerMichael Williamson <mike@zwobble.org>2022-11-25 22:58:16 +0000
commit5093d72b9fece1a7c3d7a3d19e4161387ee6475a (patch)
treec4122b0f72c7864897d78333e75328ac8c22685b /tests/docx/uris_tests.py
parent20e3e61530bef546058124c3015ae240733cc974 (diff)
Use pytest instead of nose
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"),