We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a011373 + 0085999 commit 09f3202Copy full SHA for 09f3202
1 file changed
tests/tests.py
@@ -920,10 +920,12 @@ def test_set_credentials(self):
920
self.assertEqual('foobar_user', results.username)
921
922
def test_dump_xml(self):
923
- self.kp.dump_xml('db_dump.xml')
924
- with open('db_dump.xml') as f:
+ dump_file = base_dir / 'db_dump.xml'
+ self.kp.dump_xml(dump_file)
925
+ with open(dump_file) as f:
926
first_line = f.readline()
927
self.assertEqual(first_line, '<?xml version=\'1.0\' encoding=\'utf-8\' standalone=\'yes\'?>\n')
928
+ dump_file.unlink()
929
930
def test_credchange(self):
931
"""
0 commit comments