Beispiel #1
0
 def testShouldNormalizeNumberWithDotSeparator(self):
     result = normalize("678.839.6663")
     self.assertEqual("6788396663", result)
Beispiel #2
0
 def testShouldNormalizeNumberWithAreaCodeInParens(self):
     result = normalize("(678) 839-6663")
     self.assertEqual("6788396663", result)
Beispiel #3
0
 def testShouldNotNormalizeNone(self):
     self.assertFalse(normalize(None))
Beispiel #4
0
 def testShouldNormalizeNumberWithBackslashSeparator(self):
     result = normalize("678/839/6663")
     self.assertEqual("6788396663", result)