Пример #1
0
 def test_wrong(self):
     self.assertFalse(is_good_version("vvv"))
     self.assertFalse(is_good_version(""))
Пример #2
0
 def test_not_good(self):
     self.assertFalse(is_good_version("2.2.0"))
Пример #3
0
 def test_wrong(self):
     self.assertFalse(is_good_version('vvv'))
     self.assertFalse(is_good_version(''))
Пример #4
0
 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"))
Пример #5
0
 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'))