diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/styles/document_matcher_tests.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/styles/document_matcher_tests.py b/tests/styles/document_matcher_tests.py new file mode 100644 index 0000000..46893d1 --- /dev/null +++ b/tests/styles/document_matcher_tests.py @@ -0,0 +1,10 @@ +from nose.tools import istest, assert_equal + +from mammoth import document_matchers + + +@istest +def equal_to_matcher_is_case_insensitive(): + matcher = document_matchers.equal_to("Heading 1") + assert_equal(True, matcher.matches("heaDING 1")) + assert_equal(False, matcher.matches("heaDING 2")) |
