Lines Matching refs:current_version
36 def __init__(self, current_version):
39 current_version: A version string with major, minor, and micro
43 version_info = current_version.split(".")
46 self.version = current_version + " Version details."
54 def _mock_sys(self, current_version):
55 return MockSys(current_version)
59 (comparison, current_version, min_version) = compare_version()
62 def compare_version(self, target_version, current_version=None):
64 if current_version is None:
65 current_version = "2.5.3"
66 mock_sys = self._mock_sys(current_version)
69 def compare(self, target_version, current_version=None):
71 return self.compare_version(target_version, current_version)[0]
74 """Test the current_version return value."""
75 current_version = self.compare_version("2.5")[1]
76 self.assertEquals(current_version, "2.5.3")
79 """Test the current_version return value."""