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