From 5e44d23842d68e31e92498edeb6aba2e72a63abd Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Mon, 26 Sep 2016 12:48:31 +0000 Subject: [PATCH] Add test to make sure that set_record overrides the current record Signed-off-by: Patrick Uiterwijk --- tests/python/tests/test_repomd.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/python/tests/test_repomd.py b/tests/python/tests/test_repomd.py index 283dedc..6b6b3ad 100644 --- a/tests/python/tests/test_repomd.py +++ b/tests/python/tests/test_repomd.py @@ -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 -- 2.7.4