def test_set_serial_device(): # Arrange test_api = CobblerAPI() test_manager = CollectionManager(test_api) test_system = System(test_manager) # Act result = utils.set_serial_device(test_system, 0) # Assert assert result assert test_system.serial_device == 0
def set_serial_device(self, device_number): return utils.set_serial_device(self, device_number)
def set_serial_device(self, device_number): return utils.set_serial_device(self, device_number)