'Test that a user can iterate over the hooks of a repository.'

def test_hooks(self):

    self.basic_login()
    cassette_name = self.cassette_name('hooks')
    with self.recorder.use_cassette(cassette_name):
        repository = self.gh.repository('sigmavirus24', 'github3.py')
        assert (repository is not None)
        hooks = list(repository.hooks())
    assert (len(hooks) > 0)
    for hook in hooks:
        assert isinstance(hook, github3.repos.hook.Hook)
