'Test the ability to retrieve the milestones in a repository.'

def test_milestones(self):

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