

@mock.patch('glance_store._drivers.swift.connection_manager.MultiTenantConnectionManager')
def test_get_connection_manager_multi_tenant(self, manager_class):
    manager = mock.MagicMock()
    manager_class.return_value = manager
    self.config(swift_store_multi_tenant=True)
    store = Store(self.conf)
    store.configure()
    loc = mock.MagicMock()
    swift.get_manager_for_store(loc, loc)
    self.assertEqual(swift.get_manager_for_store(store, loc), manager)

dataset/ETHPy150Open openstack/glance_store/glance_store/tests/unit/test_swift_store.py SwiftTests.test_get_connection_manager_multi_tenant/VarMisuse@70/108 `store`->`loc`