'Test that a repository\'s deployments may be retrieved.'

def test_deployments(self):

    cassette_name = self.cassette_name('deployments')
    with self.recorder.use_cassette(cassette_name):
        repository = self.gh.repository('sigmavirus24', 'github3.py')
        assert (repository is not None)
        for d in repository.deployments():
            assert isinstance(d, github3.repos.deployment.Deployment)
