

@mock.patch('glance_store._drivers.swift.connection_manager.SingleTenantConnectionManager')
def test_get_connection_manager_single_tenant(self, manager_class):
    manager = mock.MagicMock()
    manager_class.return_value = manager
    store = Store(self.conf)
    store.configure()
    loc = mock.MagicMock()
    swift.get_manager_for_store(store, loc)
    self.assertEqual(swift.get_manager_for_store(store, manager), manager)

dataset/ETHPy150Open openstack/glance_store/glance_store/tests/unit/test_swift_store.py SwiftTests.test_get_connection_manager_single_tenant/VarMisuse@76/115 `loc`->`manager`