Example #1
0
 def test_clean_value(self):
     field = TextField()
     self.assertEqual(field.clean("   Hello world. "), "Hello world.")
Example #2
0
 def test_clean_value(self):
     field = TextField()
     self.assertEqual(field.clean("   Hello world. "), "Hello world.")
Example #3
0
 def test_clean_none_value(self):
     field = TextField()
     self.assertIsNone(field.clean(None))
Example #4
0
 def test_clean_none_value(self):
     field = TextField()
     self.assertIsNone(field.clean(None))