'Test that a deployment can be retrieved by its id.'

def test_deployment(self):

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