def test_operation(self):
        pet = app.raw.apis['pet']
        self.assertEqual(sorted(pet.apis.keys()), sorted([
            'updatePet',
            'addPet',
            'findPetsByStatus',
            'findPetsByTags',
            'partialUpdate',
            'updatePetWithForm',
            'deletePet',
            'getPetById',
            'uploadFile']
        ))

        updatePet = pet.apis['updatePet']
        self.assertTrue(isinstance(updatePet, Operation))
        self.assertEqual(updatePet.path, '/pet')
        self.assertEqual(updatePet.method, 'PUT')
        self.assertEqual(updatePet.summary, 'Update an existing pet')
        self.assertEqual(updatePet.notes, '')
operation
dataset/ETHPy150Open mission-liao/pyswagger/pyswagger/tests/v1_2/test_spec.py/PropertyTestCase.test_operation