

def test_create_status(self):
    'Show that a user can create a deployment status.'
    self.basic_login()
    cassette_name = self.cassette_name('create_status')
    with d.recorder.use_cassette(cassette_name):
        repository = self.gh.repository('sigmavirus24', 'github3.py')
        assert (repository is not None)
        deployment = find((lambda d: (d.id == 801)), repository.deployments())
        assert (deployment is not None)
        status = deployment.create_status('success')
    assert isinstance(status, github3.repos.deployment.DeploymentStatus)

dataset/ETHPy150Open sigmavirus24/github3.py/tests/integration/test_repos_deployment.py TestDeployment.test_create_status/VarMisuse@28/60 `self`->`d`