예제 #1
0
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
예제 #2
0
 def set_serial_device(self, device_number):
     return utils.set_serial_device(self, device_number)
예제 #3
0
 def set_serial_device(self, device_number):
     return utils.set_serial_device(self, device_number)