def test_update_quote_success(): client = AcmeClient() client.login(user, pwd) res = client.create_quote(test_request) quote_number = res['quote_number'] client.update_quote(test_request, quote_number) assert 'quote_number' in res
def test_update_quote_fails_no_auth(): client = AcmeClient() with pytest.raises(ClientUnauthorizedException): client.update_quote(test_request, 1)