Module: deluge Branch: master Commit: a93bbc35a11c29c0c64447c4a8a10a7bdfbaaac9
Author: John Garland <[email protected]> Date: Mon Mar 22 18:16:17 2010 +1100 Merged test_versionsplit.py into test_common.py --- tests/test_common.py | 1 + tests/test_versionsplit.py | 11 ----------- 2 files changed, 1 insertions(+), 11 deletions(-) diff --git a/tests/test_common.py b/tests/test_common.py index 94c501b..54e4fc3 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 77ef1df..0000000 --- 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) -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
