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