diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-11-29 21:44:49 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-11-29 21:44:49 +0000 |
| commit | 264a67f649cab578aaafea4b23bc38b05705a1ac (patch) | |
| tree | a3d980b941d381fb6a4eb4fdd8f4d936516abb7c /tests/styles/document_matcher_tests.py | |
| parent | 85235a9cf69f847c2451eacaf44a242e6433937a (diff) | |
Add test for making sure equal_to is case-insensitive
Diffstat (limited to 'tests/styles/document_matcher_tests.py')
| -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")) |
