def test_get_relationship_returns_none_if_not_exist():
    json_api_call_context = JsonApiCallContext(
        data={"relationships": {"author": "some_relationship"}}
    )
    assert json_api_call_context.get_relationship("unknown") is None
def test_get_relationship():
    json_api_call_context = JsonApiCallContext(
        data={"relationships": {"author": "some_relationship"}}
    )
    assert json_api_call_context.get_relationship("author") == "some_relationship"