Merged test_versionsplit.py into test_common.py

This commit is contained in:
John Garland 2010-03-22 18:16:17 +11:00
parent 79ab0f118f
commit a93bbc35a1
2 changed files with 1 additions and 11 deletions

View File

@ -50,4 +50,5 @@ class CommonTestCase(unittest.TestCase):
self.failUnless(VersionSplit("1.2.2") > VersionSplit("1.2.1"))
self.failIf(VersionSplit("1.2.2") == VersionSplit("1.2.2-dev"))
self.failUnless(VersionSplit("0.14.9") == VersionSplit("0.14.9"))
self.failUnless(VersionSplit("0.14.9") > VersionSplit("0.14.5"))
self.failUnless(VersionSplit("0.14.10") >= VersionSplit("0.14.9"))

View File

@ -1,11 +0,0 @@
from twisted.trial import unittest
from deluge.common import VersionSplit
class VersionSplitTestClass(unittest.TestCase):
def test_compare(self):
vs1 = VersionSplit("0.14.9")
vs2 = VersionSplit("0.14.10")
vs3 = VersionSplit("0.14.5")
self.assertTrue(vs1 > vs3)
self.assertTrue(vs2 > vs1)