Пример #1
0
 def testAll(self):
     v = Version('3.2.1.0-rc.8', strict=False)
     self.assertEqual(True, v.satisfies())
Пример #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'))
Пример #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']))
Пример #4
0
 def testMinimal(self):
     v = Version('3.2.1.0', strict=False)
     self.assertEqual(True, v.satisfies(min='3.0.0'))
Пример #5
0
 def testMaximal(self):
     v = Version('1.8.12.13', strict=False)
     self.assertEqual(True, v.satisfies(max='1.8.12.14'))
Пример #6
0
 def testAll(self):
     v = Version('3.2.1-rc.8')
     self.assertEqual(True, v.satisfies())
Пример #7
0
 def testExcept(self):
     v = Version('3.2.1-rc.8')
     self.assertEqual(False, v.satisfies(but=['3.2.1-rc.8']))
Пример #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'))
Пример #9
0
 def testMaximal(self):
     v = Version('1.8.12')
     self.assertEqual(True, v.satisfies(max='1.8.12'))
Пример #10
0
 def testMinimal(self):
     v = Version('3.2.1')
     self.assertEqual(True, v.satisfies(min='3.0.0'))