diff --git a/ietf/ipr/tests.py b/ietf/ipr/tests.py
index a65b0d6c6c..b08e359462 100644
--- a/ietf/ipr/tests.py
+++ b/ietf/ipr/tests.py
@@ -203,26 +203,20 @@ def test_search(self):
self.assertContains(r, "Total number of documents searched: 3.")
self.assertContains(
r,
- f"""Results for {prettify_std_name(rfc_new.name)}
- ("{rfc_new.title}")""",
+ f'Results for {prettify_std_name(rfc_new.name)} ("{rfc_new.title}")',
+ html=True,
)
self.assertContains(
r,
- f"""Results for {prettify_std_name(rfc.name)}
- ("{rfc.title}"), which
-
- was obsoleted by
- {prettify_std_name(rfc_new.name)}
- ("{rfc_new.title}")""",
+ f'Results for {prettify_std_name(rfc.name)} ("{rfc.title}"), '
+ f'which was obsoleted by {prettify_std_name(rfc_new.name)} ("{rfc_new.title}")',
+ html=True,
)
self.assertContains(
r,
- f"""Results for {prettify_std_name(draft.name)}
- ("{draft.title}"), which
-
- became rfc
- {prettify_std_name(rfc.name)}
- ("{rfc.title}")""",
+ f'Results for {prettify_std_name(draft.name)} ("{draft.title}"), '
+ f'which became rfc {prettify_std_name(rfc.name)} ("{rfc.title}")',
+ html=True,
)
# find by patent owner