MCPcopy
hub / github.com/django/django / test_message_dict

Method test_message_dict

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

Source from the content-addressed store, hash-verified

734 )
735
736 def test_message_dict(self):
737 v = ValidationError({"first": ["First Problem"]})
738 self.assertEqual(str(v), "{'first': ['First Problem']}")
739 self.assertEqual(repr(v), "ValidationError({'first': ['First Problem']})")
740
741 def test_regex_validator_flags(self):
742 msg = "If the flags are set, regex must be a regular expression string."

Callers

nothing calls this directly

Calls 1

ValidationErrorClass · 0.90

Tested by

no test coverage detected