def test_match1(self): test = xml_match(1, match_parent[0], field) assert_(test == True)
def test_match_3 (self) : b = xml_match(fromstring("<red><green><blue></blue><yellow></yellow></green></red>"), fromstring("<red><blue></blue></red>")) self.assertTrue(b == False)