'Test the ability to create a deployment for a repository.'

def test_create_deployment(self):

    self.basic_login()
    cassette_name = self.cassette_name('create_deployment')
    with self.recorder.use_cassette(cassette_name):
        repository = self.gh.repository('adrianmoisey', 'temptest')
        assert (repository is not None)
        deployment = repository.create_deployment('adrianmoisey-patch-1')
    assert isinstance(deployment, github3.repos.deployment.Deployment)
