

def test_updatePet(self):
    ' updatePet '
    global pet_db
    resp = resp.client.request(sapp.op['updatePet'](body=dict(id=1, name='Tom1')))
    self.assertEqual(resp.status, 200)
    self.assertEqual(pet_db.read_(1)['name'], 'Tom1')

dataset/ETHPy150Open mission-liao/pyswagger/pyswagger/tests/contrib/client/test_flask.py FlaskTestCase.test_updatePet/VarMisuse@17/29 `self`->`resp`