Example #1
0
def test_humanize_works():
    assert humanize("") == ""
    assert humanize("5551234567") == "(555) 123-4567"
    assert humanize("999999999999999999") == "999999999999999999"
Example #2
0
 def formatted_phone_number(self) -> str:
     return pn.humanize(self.phone_number)
Example #3
0
def test_humanize_works():
    assert humanize('') == ''
    assert humanize('5551234567') == '(555) 123-4567'
    assert humanize('999999999999999999') == '999999999999999999'