mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #27795 -- Removed unneeded force_text calls
Thanks Tim Graham for the review.
This commit is contained in:
@@ -157,11 +157,6 @@ class TestUtilsText(SimpleTestCase):
|
||||
self.assertEqual(text.normalize_newlines(""), "")
|
||||
self.assertEqual(text.normalize_newlines(lazystr("abc\ndef\rghi\r\n")), "abc\ndef\nghi\n")
|
||||
|
||||
def test_normalize_newlines_bytes(self):
|
||||
"""normalize_newlines should be able to handle bytes too"""
|
||||
normalized = text.normalize_newlines(b"abc\ndef\rghi\r\n")
|
||||
self.assertEqual(normalized, "abc\ndef\nghi\n")
|
||||
|
||||
def test_phone2numeric(self):
|
||||
numeric = text.phone2numeric('0800 flowers')
|
||||
self.assertEqual(numeric, '0800 3569377')
|
||||
|
||||
Reference in New Issue
Block a user