def test_network_interface_from_dict(): # Arrange test_api = CobblerAPI() interface = NetworkInterface(test_api) intf_dict = interface.to_dict() # Act interface.from_dict(intf_dict) # Assert assert True
def test_network_interface_to_dict(): # Arrange test_api = CobblerAPI() interface = NetworkInterface(test_api) # Act result = interface.to_dict() # Assert assert isinstance(result, dict) assert "logger" not in result assert "api" not in result assert len(result) == 23