def test_addPet(self):
        global pet_db

        resp = self.client.request(
            sapp.op['addPet'](body=dict(id=5, name='Mission')),
        )

        self.assertEqual(resp.status, 200)
        self.assertEqual(pet_db.read_(5)['name'], 'Mission')
addPet
dataset/ETHPy150Open mission-liao/pyswagger/pyswagger/tests/contrib/client/test_flask.py/FlaskTestCase.test_addPet