6.1.0 - Fix aggregate report email parsing regression

Fix aggregate report email parsing regression in 6.0.3 (closes issues #57 and #58)
This commit is contained in:
Sean Whalen
2019-02-13 10:30:25 -05:00
parent 6d047befcb
commit e588845f23
8 changed files with 306 additions and 9 deletions

View File

@@ -13,12 +13,11 @@ class Test(unittest.TestCase):
sample_paths = glob("samples/aggregate/*")
for sample_path in sample_paths:
print("Testing {0}...\n".format(sample_path))
parsed_report = parsedmarc.parse_aggregate_report_file(
sample_path)
parsed_report = parsedmarc.parse_report_file(
sample_path)["report"]
print(json.dumps(parsed_report, ensure_ascii=False, indent=2))
print("\n")
print(
parsedmarc.parsed_aggregate_reports_to_csv(parsed_report))
print(parsedmarc.parsed_aggregate_reports_to_csv(parsed_report))
def testForensicSamples(self):
"""Test sample forensic/ruf/failure DMARC reports"""