@@ -307,13 +307,13 @@ def testSPFMXMechanism(self):
307307 results = checkdmarc .spf .parse_spf_record (spf_record , domain )
308308 for mechanism in results ["parsed" ]["mechanisms" ]:
309309 if mechanism ["mechanism" ] == "mx" :
310- self .assertTrue (len (mechanism ["hosts" ] ) > 0 )
310+ self .assertTrue (len (mechanism ["hosts" ]) > 0 )
311311 for host in mechanism ["hosts" ]:
312312 self .assertTrue (len (host ) > 0 )
313-
313+
314314 def testSPFMacrosExists (self ):
315315 """SPF macros can be used with the exists mechanism"""
316- record = "v=spf1 exists:exists:%{i}.spf.hc0000-xx.iphmx.com ~all"
316+ record = "v=spf1 exists:exists:%{i}.spf.hc0000-xx.iphmx.com ~all"
317317 domain = "example.com"
318318 results = checkdmarc .spf .parse_spf_record (record , domain )
319319 self .assertTrue (len (results ["parsed" ]["mechanisms" ]) > 0 )
@@ -325,15 +325,14 @@ def testSPFMacrosInclude(self):
325325 results = checkdmarc .spf .parse_spf_record (record , domain )
326326 self .assertTrue (len (results ["parsed" ]["mechanisms" ]) > 0 )
327327
328-
329328 def testSPFAMechanism (self ):
330329 """Addresses are included in the output for SPF records with an a lookup"""
331330 spf_record = "v=spf1 a ~all"
332331 domain = "example.com"
333332 results = checkdmarc .spf .parse_spf_record (spf_record , domain )
334333 for mechanism in results ["parsed" ]["mechanisms" ]:
335334 if mechanism ["mechanism" ] == "a" :
336- self .assertTrue (len (mechanism ["addresses" ] ) > 0 )
335+ self .assertTrue (len (mechanism ["addresses" ]) > 0 )
337336
338337 @unittest .skipUnless (os .path .exists ("/etc/resolv.conf" ), "no network" )
339338 def testDMARCPctLessThan100Warning (self ):
0 commit comments