I want to check the is_valid part of the form validation logic. In my test driver, I:
test_animal = Animal (name = "cat", number_paws = "4")
test_animal_form = AnimalForm (instance = test_animal)
assertEqual (test_animal_form.is_valid (), True)
The statement fails, but from what I see there should be no errors in the form. I do not see any validation errors on the form. Should this work as a test case if the test_animal instance should check when loaded into the form?
django django-forms django-testing
Miken
source share