def test_wrong(self): self.assertFalse(is_good_version("vvv")) self.assertFalse(is_good_version(""))
def test_not_good(self): self.assertFalse(is_good_version("2.2.0"))
def test_wrong(self): self.assertFalse(is_good_version('vvv')) self.assertFalse(is_good_version(''))
def test_good(self): self.assertTrue(is_good_version("2.3.0")) self.assertTrue(is_good_version("2.3.1")) self.assertTrue(is_good_version("2.4.0")) self.assertTrue(is_good_version("v2.4.0")) self.assertTrue(is_good_version("v3.1.0.dev"))
def test_ok(self): self.assertTrue(is_good_version('2.3.0')) self.assertTrue(is_good_version('2.3.1')) self.assertTrue(is_good_version('2.4.0')) self.assertTrue(is_good_version('v2.4.0')) self.assertFalse(is_good_version('2.2.0'))