mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-28 05:26:28 +02:00
change assert to satisfy linting
This commit is contained in:
parent
3b31a5c403
commit
60fcc888ad
1 changed files with 35 additions and 30 deletions
|
@ -1559,7 +1559,8 @@ class TestDomainRequestAdmin(MockEppLib):
|
|||
index = normalized_response.find(normalized_expected)
|
||||
|
||||
# Assert that the expected markup is found in the response
|
||||
assert index != -1, (
|
||||
if index == -1:
|
||||
self.fail(
|
||||
f"Expected markup not found in the response.\n\n"
|
||||
f"Expected:\n{normalized_expected}\n\n"
|
||||
f"Start index of mismatch: {index}\n\n"
|
||||
|
@ -1603,7 +1604,8 @@ class TestDomainRequestAdmin(MockEppLib):
|
|||
index = normalized_response.find(normalized_expected)
|
||||
|
||||
# Assert that the expected markup is found in the response
|
||||
assert index != -1, (
|
||||
if index == -1:
|
||||
self.fail(
|
||||
f"Expected markup not found in the response.\n\n"
|
||||
f"Expected:\n{normalized_expected}\n\n"
|
||||
f"Start index of mismatch: {index}\n\n"
|
||||
|
@ -1649,7 +1651,8 @@ class TestDomainRequestAdmin(MockEppLib):
|
|||
index = normalized_response.find(normalized_expected)
|
||||
|
||||
# Assert that the expected markup is found in the response
|
||||
assert index != -1, (
|
||||
if index == -1:
|
||||
self.fail(
|
||||
f"Expected markup not found in the response.\n\n"
|
||||
f"Expected:\n{normalized_expected}\n\n"
|
||||
f"Start index of mismatch: {index}\n\n"
|
||||
|
@ -1690,7 +1693,8 @@ class TestDomainRequestAdmin(MockEppLib):
|
|||
index = normalized_response.find(normalized_expected)
|
||||
|
||||
# Assert that the expected markup is found in the response
|
||||
assert index != -1, (
|
||||
if index == -1:
|
||||
self.fail(
|
||||
f"Expected markup not found in the response.\n\n"
|
||||
f"Expected:\n{normalized_expected}\n\n"
|
||||
f"Start index of mismatch: {index}\n\n"
|
||||
|
@ -1752,7 +1756,8 @@ class TestDomainRequestAdmin(MockEppLib):
|
|||
index = normalized_response.find(normalized_expected)
|
||||
|
||||
# Assert that the expected markup is found in the response
|
||||
assert index != -1, (
|
||||
if index == -1:
|
||||
self.fail(
|
||||
f"Expected markup not found in the response.\n\n"
|
||||
f"Expected:\n{normalized_expected}\n\n"
|
||||
f"Start index of mismatch: {index}\n\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue