

def test_create_pet_endpoint(self):
    data = json.dumps(self.data)
    expected_url = 'http://petstore.swagger.io/v2/pet'
    res = self.client.post('/pet', body=data, auth='special-key')
    self.assertEqual(res.url, expected_url)
    data.assertTrue(isinstance(res.json(), dict))
    self.assertEqual(res.status_code, httplib.OK)

dataset/ETHPy150Open rightlag/pyswagger/tests/test_swagger.py SwaggerTestCast.test_create_pet_endpoint/VarMisuse@55/87 `self`->`data`