Exemplo n.º 1
0
 def test_getting_size_when_response_is_ok(self):
     api = AtmosphereAPI('token', base_url=self.mock_users_base_url)
     response = api.get_size(5)
     assert response.ok
     assert response.message['id'] == 5 and response.message['cpu'] == 4
Exemplo n.º 2
0
 def test_getting_size_when_response_is_not_ok(self):
     api = AtmosphereAPI('token', base_url=self.mock_users_bad_base_url)
     response = api.get_size(5)
     assert not response.ok