'Test that a user can iterate over the events from a repository.'

def test_events(self):

    cassette_name = self.cassette_name('events')
    with self.recorder.use_cassette(cassette_name):
        repository = self.gh.repository('sigmavirus24', 'github3.py')
        assert (repository is not None)
        events = list(repository.events(number=100))
    assert (len(events) > 0)
    for event in events:
        assert isinstance(event, github3.events.Event)
