MCPcopy
hub / github.com/django/django / test_message_list

Method test_message_list

tests/validators/tests.py:729–734  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

727 self.assertEqual(repr(v), "ValidationError(['Not Valid'])")
728
729 def test_message_list(self):
730 v = ValidationError(["First Problem", "Second Problem"])
731 self.assertEqual(str(v), "['First Problem', 'Second Problem']")
732 self.assertEqual(
733 repr(v), "ValidationError(['First Problem', 'Second Problem'])"
734 )
735
736 def test_message_dict(self):
737 v = ValidationError({"first": ["First Problem"]})

Callers

nothing calls this directly

Calls 1

ValidationErrorClass · 0.90

Tested by

no test coverage detected