def _verify_status_code_and_return_response(self, response):
        self.assertTrue(response.code in [200, 201], "Wrong response code: %d." % response.code)
        response = escape.json_decode(response.body)
        return response
dataset/ETHPy150Open globocom/tornado-es/tornadoes/tests/unit/test_tornadoes.py/TestESConnectionWithTornadoGen._verify_status_code_and_return_response/original