Add test to make sure that set_record overrides the current record
authorPatrick Uiterwijk <puiterwijk@redhat.com>
Mon, 26 Sep 2016 12:48:31 +0000 (12:48 +0000)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Mon, 26 Sep 2016 12:52:39 +0000 (12:52 +0000)
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
tests/python/tests/test_repomd.py

index 283dedc..6b6b3ad 100644 (file)
@@ -99,6 +99,10 @@ class TestCaseRepomd(unittest.TestCase):
 
         self.assertEqual(len(md.records), 1)
 
+        md.set_record(rec)
+
+        self.assertEqual(len(md.records), 1)
+
         md.repoid = None
         md.contenthash = None