def METHOD_NAME(cobbler_api, input_proxy, expected_exception, expected_result):
    # Arrange
    testrepo = Repo(cobbler_api)
    # Act
    with expected_exception:
        testrepo.proxy = input_proxy
        # Assert
        assert testrepo.proxy == expected_result