'Show that a user can retrieve notifications for repository'

def test_subscription(self):

    self.token_login()
    cassette_name = self.cassette_name('subscription')
    with self.recorder.use_cassette(cassette_name):
        repository = self.gh.repository('sigmavirus24', 'github3.py')
        threads = list(repository.notifications(all=True))
        assert (len(threads) > 0)
        thread = threads[0]
        assert isinstance(thread, github3.notifications.Thread)
        assert isinstance(thread.subscription(), github3.notifications.Subscription)
