def testAll(self): v = Version('3.2.1.0-rc.8', strict=False) self.assertEqual(True, v.satisfies())
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'))
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']))
def testMinimal(self): v = Version('3.2.1.0', strict=False) self.assertEqual(True, v.satisfies(min='3.0.0'))
def testMaximal(self): v = Version('1.8.12.13', strict=False) self.assertEqual(True, v.satisfies(max='1.8.12.14'))
def testAll(self): v = Version('3.2.1-rc.8') self.assertEqual(True, v.satisfies())
def testExcept(self): v = Version('3.2.1-rc.8') self.assertEqual(False, v.satisfies(but=['3.2.1-rc.8']))
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'))
def testMaximal(self): v = Version('1.8.12') self.assertEqual(True, v.satisfies(max='1.8.12'))
def testMinimal(self): v = Version('3.2.1') self.assertEqual(True, v.satisfies(min='3.0.0'))