def test_mac_address(self): patt = r'([0-9A-F]{2}[:]){5}([0-9A-F]{2})' text = urtext(patt) self.assertTrue(bool(re.match(patt, text)))
def test_phone_number(self): patt = r'\d{3}-\d{3}-\d{4}' text = urtext(patt) self.assertTrue(bool(re.match(patt, text)))