@@ -55,6 +55,7 @@ def test_products_endpoint_returns_success(self):
5555 session ['access_token' ] = test_auth_token
5656 with Betamax (app .requests_session ).use_cassette ('products_success' ):
5757 response = client .get ('/products' )
58+ self .assertIn ('products' , response .data )
5859 self .assertEquals (response .status_code , 200 )
5960
6061 def test_products_endpoint_returns_failure (self ):
@@ -79,6 +80,7 @@ def test_time_estimates_endpoint_returns_success(self):
7980 session ['access_token' ] = test_auth_token
8081 with Betamax (app .requests_session ).use_cassette ('time_estimates_success' ):
8182 response = client .get ('/time' )
83+ self .assertIn ('times' , response .data )
8284 self .assertEquals (response .status_code , 200 )
8385
8486 def test_time_estimates_endpoint_returns_failure (self ):
@@ -103,6 +105,7 @@ def test_price_estimates_endpoint_returns_success(self):
103105 session ['access_token' ] = test_auth_token
104106 with Betamax (app .requests_session ).use_cassette ('price_estimates_success' ):
105107 response = client .get ('/price' )
108+ self .assertIn ('prices' , response .data )
106109 self .assertEquals (response .status_code , 200 )
107110
108111 def test_price_estimates_endpoint_returns_failure (self ):
@@ -127,6 +130,7 @@ def test_history_endpoint_returns_success(self):
127130 session ['access_token' ] = test_auth_token
128131 with Betamax (app .requests_session ).use_cassette ('history_success' ):
129132 response = client .get ('/history' )
133+ self .assertIn ('history' , response .data )
130134 self .assertEquals (response .status_code , 200 )
131135
132136 def test_history_endpoint_returns_failure (self ):
@@ -151,6 +155,7 @@ def test_me_endpoint_returns_success(self):
151155 session ['access_token' ] = test_auth_token
152156 with Betamax (app .requests_session ).use_cassette ('me_success' ):
153157 response = client .get ('/me' )
158+ self .assertIn ('picture' , response .data )
154159 self .assertEquals (response .status_code , 200 )
155160
156161 def test_me_endpoint_returns_failure (self ):
0 commit comments