def test_phone_paren(self): self.assertEqual(t.number("(202) 555-1212"), '(242) 285-1414')
def test_long(self): self.assertEqual(t.number("202-555-1212_202-555-1212_202-555"), '284-902-3455_113-703-3306_045-647')
def test_phone_dash(self): self.assertEqual(t.number("202-555-1212"), '104-602-3763')
def test_ssn(self): self.assertEqual(t.number("123-45-6789"), '405-92-2523')
def test_no_punc(self): self.assertEqual(t.number("42"), '21')
def test_empty(self): self.assertEqual(t.number(""), '')