示例#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'))