diff --git a/tests/test_common.py b/tests/test_common.py index 94c501bce..54e4fc371 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -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")) diff --git a/tests/test_versionsplit.py b/tests/test_versionsplit.py deleted file mode 100644 index 77ef1df60..000000000 --- a/tests/test_versionsplit.py +++ /dev/null @@ -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)