def test_updatePet(self):
        _, resp = app.op['updatePet'](body=dict(id=1, name='Mary'))

        # update raw before status should raise exception
        self.assertRaises(Exception, resp.apply_with, raw={})

        resp.apply_with(status=400)
        self.assertEqual(resp.status, 400)
Short to RGB
dataset/ETHPy150Open mission-liao/pyswagger/pyswagger/tests/v1_2/test_io.py/SwaggerResponse_TestCase.test_updatePet--crossover with--dataset/ETHPy150Open DTVD/rainbowstream/rainbowstream/pure_image.py/short2rgb