def os_version(self, os_version: str): """ Set the Operating System Version. :param os_version: The new OS Version. """ self._os_version = validate.validate_os_version(os_version, self.breed)
def os_version(self, os_version): """ Set the operating system version with this setter. :param os_version: This must be a valid OS-Version. """ self._os_version = validate.validate_os_version(os_version, self.breed)
def test_validate_os_version(): # Arrange utils.load_signatures("/var/lib/cobbler/distro_signatures.json") # Act result = validate.validate_os_version("rhel4", "redhat") # Assert assert result == "rhel4"