diff --git a/tests/tests.py b/tests/tests.py index 0779521d..12b4409b 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -920,10 +920,12 @@ def test_set_credentials(self): self.assertEqual('foobar_user', results.username) def test_dump_xml(self): - self.kp.dump_xml('db_dump.xml') - with open('db_dump.xml') as f: + dump_file = base_dir / 'db_dump.xml' + self.kp.dump_xml(dump_file) + with open(dump_file) as f: first_line = f.readline() self.assertEqual(first_line, '\n') + dump_file.unlink() def test_credchange(self): """