'Test that a user can retrieve a repository\'s labels.'

def test_labels(self):

    cassette_name = self.cassette_name('labels')
    with self.recorder.use_cassette(cassette_name):
        repository = self.gh.repository('sigmavirus24', 'github3.py')
        assert (repository is not None)
        labels = list(repository.labels())
    assert (len(labels) > 0)
    for label in labels:
        assert isinstance(label, github3.issues.label.Label)
