Ejemplo n.º 1
0
 def test_doesnt_match_with_attrs(self):
     element = Element("a", href="web address")
     matcher = NoAttributesTagElementMatcher(["a"])
     self.assertFalse(matcher.doesMatch(element))
Ejemplo n.º 2
0
 def test_matches_no_attrs(self):
     element = Element("a")
     matcher = NoAttributesTagElementMatcher(["a"])
     self.assertTrue(matcher.doesMatch(element))