From f33f400702b5635f5a77100559482e82fe15e9a6 Mon Sep 17 00:00:00 2001 From: Tomas Mlcoch Date: Mon, 10 Jun 2013 18:17:22 +0200 Subject: [PATCH] tests: Fix python test for ContentStat object. --- tests/python/tests/test_contentstat.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/python/tests/test_contentstat.py b/tests/python/tests/test_contentstat.py index ef24202..c8849f1 100644 --- a/tests/python/tests/test_contentstat.py +++ b/tests/python/tests/test_contentstat.py @@ -21,6 +21,9 @@ class TestCaseContentStat(unittest.TestCase): pkg = cr.package_from_rpm(PKG_ARCHER_PATH) self.assertTrue(pkg) + pkg.time_file = 1 + pkg.time_build = 1 + cs = cr.ContentStat(cr.SHA256) self.assertEqual(cs.size, 0) self.assertEqual(cs.checksum_type, cr.SHA256) @@ -35,8 +38,8 @@ class TestCaseContentStat(unittest.TestCase): self.assertTrue(os.path.isfile(path)) - self.assertEqual(cs.size, 2686) + self.assertEqual(cs.size, 2668) self.assertEqual(cs.checksum_type, cr.SHA256) - self.assertEqual(cs.checksum, "05509ef37239eb123d41c077626b788352ef94"\ - "5200231a901802ef59e565978f") + self.assertEqual(cs.checksum, "67bc6282915fad80dc11f3d7c3210977a0bde"\ + "05a762256d86083c2447d425776") -- 2.7.4