From 5ba0f7ecb8c4af02db2caf5775f8d0cf02595951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Tue, 21 Jun 2005 15:48:37 +0000 Subject: [PATCH] * unutulmus bir dosyamiz --- tests/versiontests.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/versiontests.py diff --git a/tests/versiontests.py b/tests/versiontests.py new file mode 100644 index 00000000..883d3ec9 --- /dev/null +++ b/tests/versiontests.py @@ -0,0 +1,23 @@ + +import unittest +import os + +from pisi import version +from pisi import util +from pisi import context + +class VersionTestCase(unittest.TestCase): + def setUp(self): + pass + + def testOps(self): + v1 = version.Version("0.3.1") + v2 = version.Version("0.3.5") + v3 = version.Version("1.5.2-4") + v4 = version.Version("0.3.1-1") + self.assert_(v1 < v2) + self.assert_(v3 > v2) + self.assert_(v1 <= v3) + self.assert_(v4 >= v4) + +suite = unittest.makeSuite(VersionTestCase)