'TextField passes its max_length attribute to form fields created using
their formfield() method.'

def test_max_length_passed_to_formfield(self):

    tf1 = models.TextField()
    tf2 = models.TextField(max_length=2345)
    self.assertIsNone(tf1.formfield().max_length)
    self.assertEqual(2345, tf2.formfield().max_length)
