diff options
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r-- | tests/test_utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py index 38d50a7..fa930fe 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -64,6 +64,7 @@ def test_nwise(): assert list(nwise("1234", n=1)) == [("1", ), ("2", ), ("3", ), ("4", )] assert list(nwise([1, 2, 3, 4, 5], n=3)) == [(1, 2, 3), (4, 5)] + def test_dict_key_exists(): assert dict_key_exists({}, "") is False assert dict_key_exists({"a": "a"}, "a") == True @@ -72,6 +73,7 @@ def test_dict_key_exists(): assert dict_key_exists({"a": {"b": None}}, "a.b") == True assert dict_key_exists({"a": {"b": "c"}}, "a.b.c") == False + def test_page_page_string(): reject = ("", "123-2", "123-120", "123a-124", "-2-1") for s in reject: |