Provide a __str__ method
This commit is contained in:
parent
790cfe7751
commit
c3ecdeb767
2 changed files with 6 additions and 0 deletions
|
@ -40,6 +40,9 @@ class RunningKernelVersionTestCase(unittest.TestCase):
|
|||
|
||||
|
||||
class VersionTestCase(unittest.TestCase):
|
||||
def testStr(self):
|
||||
self.assertEqual(str(Version('1.0')), '1.0')
|
||||
|
||||
def testComparingTrivial(self):
|
||||
self.assertEqual(Version('1.0'), Version('1.0'))
|
||||
self.assertGreater(Version('2.0'), Version('1.0'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue