From 264a67f649cab578aaafea4b23bc38b05705a1ac Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 29 Nov 2016 21:44:49 +0000 Subject: Add test for making sure equal_to is case-insensitive --- tests/styles/document_matcher_tests.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/styles/document_matcher_tests.py (limited to 'tests/styles') 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")) -- cgit v1.2.3