Beispiel #1
0
 def test_equal(self):
     v1 = Version(1, 0)
     v2 = Version(1, 0)
     self.assertEqual(v1, v2)
     self.assertTrue(v1.isCompatible(v2))
Beispiel #2
0
 def test_different(self):
     v1 = Version(1, 0)
     v2 = Version(1, 2)
     self.assertNotEqual(v1, v2)
     self.assertTrue(v2.isCompatible(v1))
     self.assertFalse(v1.isCompatible(v2))