'Test the ability to retrieve a hook from a repository.'

def test_hook(self):

    self.token_login()
    cassette_name = self.cassette_name('hook')
    with self.recorder.use_cassette(cassette_name):
        repository = self.gh.repository('itsmemattchung', 'github3.py')
        hook = repository.hook(6818702)
    assert isinstance(hook, github3.repos.hook.Hook)
