MCPcopy
hub / github.com/django/django / test_single_message

Method test_single_message

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

Source from the content-addressed store, hash-verified

722 self.assertEqual(expected, validator(value))
723
724 def test_single_message(self):
725 v = ValidationError("Not Valid")
726 self.assertEqual(str(v), "['Not Valid']")
727 self.assertEqual(repr(v), "ValidationError(['Not Valid'])")
728
729 def test_message_list(self):
730 v = ValidationError(["First Problem", "Second Problem"])

Callers

nothing calls this directly

Calls 1

ValidationErrorClass · 0.90

Tested by

no test coverage detected