diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/model_fields/tests.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/model_fields/tests.py b/tests/model_fields/tests.py index 3e59f6465b..939ba269d8 100644 --- a/tests/model_fields/tests.py +++ b/tests/model_fields/tests.py @@ -246,6 +246,13 @@ class ManyToManyFieldTests(test.SimpleTestCase): ) +class TextFieldTests(test.TestCase): + def test_to_python(self): + """TextField.to_python() should return a string""" + f = models.TextField() + self.assertEqual(f.to_python(1), '1') + + class DateTimeFieldTests(test.TestCase): def test_datetimefield_to_python_usecs(self): """DateTimeField.to_python should support usecs""" |
