def test_invalid_extensions(self):
        app = openstack.APIRouterV11()
        ext_midware = extensions.ExtensionMiddleware(app)
        ext_mgr = ext_midware.ext_mgr
        ext_mgr.add_extension(InvalidExtension())
        self.assertTrue('FOXNSOX' in ext_mgr.extensions)
        self.assertTrue(ext_mgr.extensions not in 'THIRD')
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/tests/api/openstack/test_extensions.py/ExtensionManagerTest.test_invalid_extensions/swapped operands of `not in`