diff options
| author | Michael Williamson <mike@zwobble.org> | 2022-11-25 22:50:05 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2022-11-25 22:58:16 +0000 |
| commit | 5093d72b9fece1a7c3d7a3d19e4161387ee6475a (patch) | |
| tree | c4122b0f72c7864897d78333e75328ac8c22685b /tests/lists_tests.py | |
| parent | 20e3e61530bef546058124c3015ae240733cc974 (diff) | |
Use pytest instead of nose
Diffstat (limited to 'tests/lists_tests.py')
| -rw-r--r-- | tests/lists_tests.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/lists_tests.py b/tests/lists_tests.py index 49d5331..b8a37f0 100644 --- a/tests/lists_tests.py +++ b/tests/lists_tests.py @@ -1,13 +1,10 @@ -from nose.tools import istest, assert_equal - from mammoth.lists import unique +from .testing import assert_equal -@istest -def unique_of_empty_list_is_empty_list(): +def test_unique_of_empty_list_is_empty_list(): assert_equal([], unique([])) -@istest -def unique_removes_duplicates_while_preserving_order(): +def test_unique_removes_duplicates_while_preserving_order(): assert_equal(["apple", "banana"], unique(["apple", "banana", "apple"])) |
