'Assert error is raised if function is called without
authentication.'

def assert_requires_auth(self, func, *args, **kwargs):

    with pytest.raises(github3.exceptions.AuthenticationFailed):
        func(*args, **kwargs)
