def test_clean_value(self): field = TextField() self.assertEqual(field.clean(" Hello world. "), "Hello world.")
def test_clean_none_value(self): field = TextField() self.assertIsNone(field.clean(None))