MCPcopy
hub / github.com/django/django / test_needle_msg

Method test_needle_msg

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

Source from the content-addressed store, hash-verified

1066
1067class InHTMLTests(SimpleTestCase):
1068 def test_needle_msg(self):
1069 msg = (
1070 "False is not true : Couldn't find '<b>Hello</b>' in the following "
1071 "response\n'<p>Test</p>'"
1072 )
1073 with self.assertRaisesMessage(AssertionError, msg):
1074 self.assertInHTML("<b>Hello</b>", "<p>Test</p>")
1075
1076 def test_msg_prefix(self):
1077 msg = (

Callers

nothing calls this directly

Calls 2

assertRaisesMessageMethod · 0.80
assertInHTMLMethod · 0.80

Tested by

no test coverage detected