MCPcopy
hub / github.com/django/django / test_msg_prefix

Method test_msg_prefix

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

Source from the content-addressed store, hash-verified

1074 self.assertInHTML("<b>Hello</b>", "<p>Test</p>")
1075
1076 def test_msg_prefix(self):
1077 msg = (
1078 "False is not true : Prefix: Couldn't find '<b>Hello</b>' in the following "
1079 'response\n\'<input type="text" name="Hello" />\''
1080 )
1081 with self.assertRaisesMessage(AssertionError, msg):
1082 self.assertInHTML(
1083 "<b>Hello</b>",
1084 '<input type="text" name="Hello" />',
1085 msg_prefix="Prefix",
1086 )
1087
1088 def test_count_msg_prefix(self):
1089 msg = (

Callers

nothing calls this directly

Calls 2

assertRaisesMessageMethod · 0.80
assertInHTMLMethod · 0.80

Tested by

no test coverage detected