def test_should_return_correct_version_with_v(self):
     assert get_previous_version("0.10.0") == "0.9.0"
 def test_should_return_correct_version_with_v(self):
     self.assertEqual(get_previous_version('0.10.0'), '0.9.0')
 def test_should_return_correct_version_with_v(self):
     self.assertEqual(get_previous_version('0.10.0'), '0.9.0')
 def test_should_return_correct_version(self):
     self.assertEqual(get_previous_version("0.10.0"), "0.9.0")
示例#5
0
 def test_should_return_correct_version_skip_prerelease(self):
     assert get_previous_version("0.10.0-beta") == "0.9.0"