More tests cleanup

This commit is contained in:
Sean Whalen
2025-11-21 09:10:59 -05:00
parent 858be00f22
commit 17bdc3a134

View File

@@ -75,7 +75,9 @@ class Test(unittest.TestCase):
file = "samples/extract_report/nice-input.xml"
print("Testing {0}: ".format(file), end="")
xmlout = parsedmarc.extract_report(file)
xmlin = open("samples/extract_report/nice-input.xml").read()
xmlin_file = open("samples/extract_report/nice-input.xml")
xmlin = xmlin_file.read()
xmlin_file.close()
self.assertTrue(compare_xml(xmlout, xmlin))
print("Passed!")