Skip to content

Commit ca1f005

Browse files
committed
Refactor warning message formatting in test for DMARC record parsing
1 parent 1c9500e commit ca1f005

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -513,9 +513,9 @@ def testDMARCbisMissingPTagWarning(self):
513513
result = checkdmarc.dmarc.parse_dmarc_record(dmarc_record, domain)
514514
self.assertEqual(result["tags"]["p"]["value"], "none")
515515
self.assertFalse(result["tags"]["p"]["explicit"])
516-
warning = "A missing p tag is equivalent to p=none in DMARCbis, "
517-
"but a p tag is required in older versions of DMARC."
518-
516+
warning = ("A missing p tag is equivalent to p=none in DMARCbis, "
517+
"but a p tag is required in older versions of DMARC.")
518+
519519
self.assertTrue(
520520
any(warning in w for w in result["warnings"])
521521
)

0 commit comments

Comments
 (0)