MCPcopy
hub / github.com/django/django / test_phone2numeric

Method test_phone2numeric

tests/utils_tests/test_text.py:345–349  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

343 )
344
345 def test_phone2numeric(self):
346 numeric = text.phone2numeric("0800 flowers")
347 self.assertEqual(numeric, "0800 3569377")
348 lazy_numeric = lazystr(text.phone2numeric("0800 flowers"))
349 self.assertEqual(lazy_numeric, "0800 3569377")
350
351 def test_slugify(self):
352 items = (

Callers

nothing calls this directly

Calls 1

lazystrFunction · 0.90

Tested by

no test coverage detected