def change_experiment_state(experiment_id: int, new_state: str) -> None:
    certs.cli_cert = certs.default_load(conf.make_master_url())
    authentication.cli_auth = authentication.Authentication(conf.make_master_url(), try_reauth=True)
    r = api.patch(conf.make_master_url(), 'experiments/{}'.format(experiment_id), headers={'Content-Type': 'application/merge-patch+json'}, json={'state': new_state})
    assert (r.status_code == requests.codes.no_content), r.text
def change_experiment_state(experiment_id: int, new_state: str) -> None:
    certs.cli_cert = certs.default_load(conf.make_master_url())
    authentication.cli_auth = authentication.Authentication(conf.make_master_url(), try_reauth=True)
    r = api.patch(conf.make_master_url(), 'experiments/{}'.format(experiment_id), headers={'Content-Type': 'application/merge-patch+json'}, json={'state': new_state})
    assert (r.status_code == requests.codes.no_content), r.text