diff --git a/tests.py b/tests.py index 7d177fd..a9bd4ec 100755 --- a/tests.py +++ b/tests.py @@ -359,6 +359,13 @@ def test_multiple_class_selector(self): output = Pynliner().from_string(html).with_cssString(css).run() self.assertEqual(output, expected) + def test_conflicting_multiple_class_selector(self): + html = """

Hello World!

I should not be changed

""" + css = """h1.a.b { color: red; }""" + expected = u'

Hello World!

I should not be changed

' + output = Pynliner().from_string(html).with_cssString(css).run() + self.assertEqual(output, expected) + def test_combination_selector(self): html = """

Hello World!

""" css = """h1#a.b { color: red; }"""