aboutsummaryrefslogtreecommitdiff
path: root/tests/styles/document_matcher_tests.py
blob: 46893d165c76cde38b897acfb4ef2b2a35119085 (plain)
1
2
3
4
5
6
7
8
9
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"))