def test_updatePetWithForm(self):
        req, _ = app.op['updatePetWithForm'](petId=23, name='Gary', status='pending')
        req.prepare()

        self.assertEqual(req.url, 'http://petstore.swagger.wordnik.com/api/pet/23')
        self.assertEqual(req.path, '/api/pet/23')
        self.assertEqual(req.base_path, '')
        self.assertEqual(req.method, 'post')
        self.assertEqual(req.header,{
            'Content-Type': u'application/x-www-form-urlencoded',
            'Accept': 'application/json'
        })
        self.assertTrue(req.data.find('status=pending') != -1)
        self.assertTrue(req.data.find('name=Gary') != -1)
        self.assertEqual(req.query, [])
Initialize all valid properties.
dataset/ETHPy150Open mission-liao/pyswagger/pyswagger/tests/v1_2/test_io.py/SwaggerRequest_Pet_TestCase.test_updatePetWithForm--crossover with--dataset/ETHPy150Open smart-on-fhir/client-py/fhirclient/models/allergyintolerance.py/AllergyIntolerance.__init__