def METHOD_NAME(self):
    """test for max length"""
    # get objects
    casepriority_1 = Casepriority.objects.get(casepriority_name='casepriority_1')
    casestatus_1 = Casestatus.objects.get(casestatus_name='casestatus_1')
    # get object
    form = CaseForm(
        data={
            'case_name': 'd' * 256,
            'casepriority': casepriority_1,
            'casestatus': casestatus_1,
        }
    )
    # compare
    self.assertFalse(form.is_valid())