MCPcopy
hub / github.com/django/django / test_single_error

Method test_single_error

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

Source from the content-addressed store, hash-verified

1501
1502class AssertFormErrorTests(SimpleTestCase):
1503 def test_single_error(self):
1504 self.assertFormError(TestForm.invalid(), "field", "invalid value")
1505
1506 def test_error_list(self):
1507 self.assertFormError(TestForm.invalid(), "field", ["invalid value"])

Callers

nothing calls this directly

Calls 2

assertFormErrorMethod · 0.45
invalidMethod · 0.45

Tested by

no test coverage detected