mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed a typo in some tests.
This commit is contained in:
parent
2bc43ccbdb
commit
fdca036827
@ -198,7 +198,7 @@ class AssertContainsTests(SimpleTestCase):
|
|||||||
|
|
||||||
long_content = (
|
long_content = (
|
||||||
b"This is a very very very very very very very very long message which "
|
b"This is a very very very very very very very very long message which "
|
||||||
b"exceedes the max limit of truncation."
|
b"exceeds the max limit of truncation."
|
||||||
)
|
)
|
||||||
response = HttpResponse(long_content)
|
response = HttpResponse(long_content)
|
||||||
msg = f"Couldn't find 'thrice' in the following response\n{long_content}"
|
msg = f"Couldn't find 'thrice' in the following response\n{long_content}"
|
||||||
|
@ -1046,7 +1046,7 @@ class InHTMLTests(SimpleTestCase):
|
|||||||
def test_long_haystack(self):
|
def test_long_haystack(self):
|
||||||
haystack = (
|
haystack = (
|
||||||
"<p>This is a very very very very very very very very long message which "
|
"<p>This is a very very very very very very very very long message which "
|
||||||
"exceedes the max limit of truncation.</p>"
|
"exceeds the max limit of truncation.</p>"
|
||||||
)
|
)
|
||||||
msg = f"Couldn't find '<b>Hello</b>' in the following response\n{haystack!r}"
|
msg = f"Couldn't find '<b>Hello</b>' in the following response\n{haystack!r}"
|
||||||
with self.assertRaisesMessage(AssertionError, msg):
|
with self.assertRaisesMessage(AssertionError, msg):
|
||||||
|
Loading…
Reference in New Issue
Block a user