Exemple #1
0
 def testAll(self):
     v = Version('3.2.1.0-rc.8', strict=False)
     self.assertEqual(True, v.satisfies())
Exemple #2
0
 def testBetween(self):
     v = Version('3.2.1.0-rc.8', strict=False)
     self.assertEqual(True, v.satisfies(min='3.2.1.0-alpha.1', max='3.2.1.0-rc.12'))
Exemple #3
0
 def testExcept(self):
     v = Version('3.2.1.0-rc.8', strict=False)
     self.assertEqual(False, v.satisfies(min='3.2.0.19', max='3.2.2.0', but=['3.2.1.0-rc.8']))
Exemple #4
0
 def testMinimal(self):
     v = Version('3.2.1.0', strict=False)
     self.assertEqual(True, v.satisfies(min='3.0.0'))
Exemple #5
0
 def testMaximal(self):
     v = Version('1.8.12.13', strict=False)
     self.assertEqual(True, v.satisfies(max='1.8.12.14'))
Exemple #6
0
 def testAll(self):
     v = Version('3.2.1-rc.8')
     self.assertEqual(True, v.satisfies())
Exemple #7
0
 def testExcept(self):
     v = Version('3.2.1-rc.8')
     self.assertEqual(False, v.satisfies(but=['3.2.1-rc.8']))
Exemple #8
0
 def testBetween(self):
     v = Version('3.2.1-rc.8')
     self.assertEqual(True, v.satisfies(min='3.2.1-alpha.1', max='3.2.1-rc.12'))
Exemple #9
0
 def testMaximal(self):
     v = Version('1.8.12')
     self.assertEqual(True, v.satisfies(max='1.8.12'))
Exemple #10
0
 def testMinimal(self):
     v = Version('3.2.1')
     self.assertEqual(True, v.satisfies(min='3.0.0'))