diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/python/tests/test_sqlite.py | 1 | ||||
-rw-r--r-- | tests/python/tests/test_xml_file.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/python/tests/test_sqlite.py b/tests/python/tests/test_sqlite.py index 045b0fc..5247a3c 100644 --- a/tests/python/tests/test_sqlite.py +++ b/tests/python/tests/test_sqlite.py @@ -56,6 +56,7 @@ class TestCaseSqlite(unittest.TestCase): self.assertRaises(cr.CreaterepoCError, db.add_pkg, pkg) self.assertRaises(cr.CreaterepoCError, db.dbinfo_update, "somechecksum") + self.assertEqual("<createrepo_c.Sqlite Closed object>", db.__str__()) db.close() # No error should be raised del db # No error should be raised diff --git a/tests/python/tests/test_xml_file.py b/tests/python/tests/test_xml_file.py index 0100d1b..8aa6d5c 100644 --- a/tests/python/tests/test_xml_file.py +++ b/tests/python/tests/test_xml_file.py @@ -49,6 +49,7 @@ class TestCaseXmlFile(unittest.TestCase): self.assertRaises(cr.CreaterepoCError, f.set_num_of_pkgs, 1) self.assertRaises(cr.CreaterepoCError, f.add_pkg, pkg) self.assertRaises(cr.CreaterepoCError, f.add_chunk, "<chunk>text</chunk>") + self.assertEqual("<createrepo_c.XmlFile Closed object>", f.__str__()) f.close() # No error should be raised del(f) # No error should be raised |