aboutsummaryrefslogtreecommitdiff
path: root/tests/testing.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testing.py')
-rw-r--r--tests/testing.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/testing.py b/tests/testing.py
index c5013dc..e75d630 100644
--- a/tests/testing.py
+++ b/tests/testing.py
@@ -1,18 +1,21 @@
import os
-from nose.tools import nottest
+from precisely import assert_that, equal_to
-@nottest
-def test_path(path):
+def generate_test_path(path):
this_dir = os.path.dirname(__file__)
return os.path.join(this_dir, "test-data", path)
+def assert_equal(expected, actual):
+ assert_that(actual, equal_to(expected))
+
+
def assert_raises(exception, func):
try:
func()
assert False, "Expected " + exception.__name__
except exception as error:
return error
-
+