Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ietf/sync/tests_rfcindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ def test_create_rfc_txt_index(self, mock_save_blob, mock_save_file):
f"{self.april_fools_rfc.rfc_number} {self.april_fools_rfc.title}",
stripped_contents,
)
self.assertIn("1 April 2020", contents) # from the April 1 RFC
# "1 April 2020" may be split across a line wrap (e.g. "1 April\n 2020")
# when the randomly-generated title is long enough to push the date off the line.
# assertRegex handles both wrapped and non-wrapped cases explicitly.
self.assertRegex(contents, r"1\s+April\s+2020") # from the April 1 RFC
self.assertIn(
f"{self.rfc.rfc_number} {self.rfc.title}",
stripped_contents,
Expand Down
Loading