Skip to content

Commit

Permalink
test: check HTML content with whitespace ignored (#7921)
Browse files Browse the repository at this point in the history
  • Loading branch information
microamp authored Sep 12, 2024
1 parent 13aa072 commit 8d608a1
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions ietf/ipr/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,26 +203,20 @@ def test_search(self):
self.assertContains(r, "Total number of documents searched: <b>3</b>.")
self.assertContains(
r,
f"""Results for <a href="/doc/{rfc_new.name}/">{prettify_std_name(rfc_new.name)}</a>
("{rfc_new.title}")""",
f'Results for <a href="/doc/{rfc_new.name}/">{prettify_std_name(rfc_new.name)}</a> ("{rfc_new.title}")',
html=True,
)
self.assertContains(
r,
f"""Results for <a href="/doc/{rfc.name}/">{prettify_std_name(rfc.name)}</a>
("{rfc.title}"), which
was obsoleted by
<a href="/doc/{rfc_new.name}/">{prettify_std_name(rfc_new.name)}</a>
("{rfc_new.title}")""",
f'Results for <a href="/doc/{rfc.name}/">{prettify_std_name(rfc.name)}</a> ("{rfc.title}"), '
f'which was obsoleted by <a href="/doc/{rfc_new.name}/">{prettify_std_name(rfc_new.name)}</a> ("{rfc_new.title}")',
html=True,
)
self.assertContains(
r,
f"""Results for <a href="/doc/{draft.name}/">{prettify_std_name(draft.name)}</a>
("{draft.title}"), which
became rfc
<a href="/doc/{rfc.name}/">{prettify_std_name(rfc.name)}</a>
("{rfc.title}")""",
f'Results for <a href="/doc/{draft.name}/">{prettify_std_name(draft.name)}</a> ("{draft.title}"), '
f'which became rfc <a href="/doc/{rfc.name}/">{prettify_std_name(rfc.name)}</a> ("{rfc.title}")',
html=True,
)

# find by patent owner
Expand Down

0 comments on commit 8d608a1

Please sign in to comment.