MCPcopy
hub / github.com/django/django / test_error_list

Method test_error_list

tests/test_utils/tests.py:1506–1507  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1504 self.assertFormError(TestForm.invalid(), "field", "invalid value")
1505
1506 def test_error_list(self):
1507 self.assertFormError(TestForm.invalid(), "field", ["invalid value"])
1508
1509 def test_empty_errors_valid_form(self):
1510 self.assertFormError(TestForm.valid(), "field", [])

Callers

nothing calls this directly

Calls 2

assertFormErrorMethod · 0.45
invalidMethod · 0.45

Tested by

no test coverage detected