From: Patrick Uiterwijk Date: Mon, 26 Sep 2016 12:48:31 +0000 (+0000) Subject: Add test to make sure that set_record overrides the current record X-Git-Tag: upstream/0.10.0~4^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e44d23842d68e31e92498edeb6aba2e72a63abd;p=services%2Fcreaterepo_c.git Add test to make sure that set_record overrides the current record Signed-off-by: Patrick Uiterwijk --- 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