def _do_test_fail_bad_request(self, api_client_mgmt, tenant_id=None): auth = None if tenant_id is not None: auth = make_auth("foo", tenant_id) try: r = api_client_mgmt.post_settings("asdf", auth) except bravado.exception.HTTPError as e: assert e.response.status_code == 400
def _set_and_verify(self, settings, api_client_mgmt, auth): r = api_client_mgmt.post_settings(settings, auth) assert r.status_code == 201 found = api_client_mgmt.get_settings(auth) assert found.json() == settings