From 88f4e06f0bc967953575003249316f42d97e5ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beyza=20Ermi=C5=9F?= Date: Thu, 10 Jul 2008 09:25:46 +0000 Subject: [PATCH] Constant Test case has been added. --- tests/constanttest.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/constanttest.py diff --git a/tests/constanttest.py b/tests/constanttest.py new file mode 100644 index 00000000..1a1ed695 --- /dev/null +++ b/tests/constanttest.py @@ -0,0 +1,15 @@ +import unittest +import pisi.constants +import pisi.context as ctx + +class ConstantTestCase(unittest.TestCase): + + def testConstants(self): + constants = ctx.const + constDict = {"actions": "actions.py", "setup":"setup","metadata":"metadata.xml"} + + for i in constDict.keys(): + if hasattr(constants,i): + value = getattr(constants,i) + self.assertEqual(value, constDict[i]) +