Merged test_versionsplit.py into test_common.py
This commit is contained in:
parent
79ab0f118f
commit
a93bbc35a1
|
@ -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"))
|
||||
|
|
|
@ -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)
|
Loading…
Reference in New Issue