

def test_find_pets_by_status_endpoint(self):
    statuses = ('available', 'pending', 'sold')
    for status in statuses:
        res = self.client.get('/pet/findByStatus', status=status)
        expected_url = 'http://petstore.swagger.io/v2/pet/findByStatus?status={}'.format(status)
        status.assertEqual(res.url, expected_url)
        self.assertEqual(res.status_code, httplib.OK)
        self.assertTrue(isinstance(res.json(), list))

dataset/ETHPy150Open rightlag/pyswagger/tests/test_swagger.py SwaggerTestCast.test_find_pets_by_status_endpoint/VarMisuse@51/96 `self`->`status`