def test_price_estimates_endpoint_returns_success(self):
"""Assert that the price estimates endpoint returns success.
When a valid key is passed in.
"""
with app.test_client() as client:
with client.session_transaction() as session:
session['access_token'] = test_auth_token
with Betamax(app.requests_session).use_cassette('price_estimates_success'):
response = client.get('/price')
self.assertIn('prices', response.data)
self.assertEquals(response.status_code, 200)
评论列表
文章目录