def test_getting_maintenance_record_when_response_is_ok(self): api = AtmosphereAPI('token', base_url=self.mock_users_base_url) response = api.get_maintenance_record(19) assert response.ok assert response.message['id'] == 19 and response.message[ 'title'] == '8/14/18 - v33 deployment'
def test_getting_maintenance_record_when_response_is_not_ok(self): api = AtmosphereAPI('token', base_url=self.mock_users_bad_base_url) response = api.get_maintenance_record(19) assert not response.ok