def METHOD_NAME():
    """
    Check that get_errors is able to retrieve an error message
    from Github's API response
    """
    with pytest.raises(GithubError):
        assert (
            get_errors({'errors': ['this is an error message', 'and another error']})
            == 'this is an error message'
        )