def test_invalid_latent_methods(self):

        self.assertRaises(TypeError,
                          self.application.set_latent,
                          allow_methods='POST')
Assert that passing a non-list is caught.
dataset/ETHPy150Open openstack/oslo.middleware/oslo_middleware/tests/test_cors.py/CORSTestLatentProperties.test_invalid_latent_methods