

def test_addPet(self):
    ' addPet '
    global pet_db
    resp = self.client.request(sapp.op['addPet'](body=dict(id=5, name='Mission')))
    resp.assertEqual(resp.status, 200)
    self.assertEqual(pet_db.read_(5)['name'], 'Mission')

dataset/ETHPy150Open mission-liao/pyswagger/pyswagger/tests/contrib/client/test_flask.py FlaskTestCase.test_addPet/VarMisuse@45/65 `self`->`resp`