

def setUp(self):
    super(TestSingleTenantStoreConnections, self).setUp()
    moxfixture = self.useFixture(moxstubout.MoxStubout())
    self.stubs = moxfixture.stubs
    self.stubs.Set(swiftclient, 'Connection', FakeConnection)
    self.store = swift.SingleTenantStore(self.conf)
    self.store.configure()
    specs = {
        'scheme': 'swift',
        'auth_or_store_url': 'example.com/v2/',
        'user': 'tenant:user1',
        'key': 'key1',
        'container': 'cont',
        'obj': 'object',
    }
    self.location = swift.StoreLocation(specs, self.conf)
    self.addCleanup(self.conf.reset)

dataset/ETHPy150Open openstack/glance_store/glance_store/tests/unit/test_swift_store.py TestSingleTenantStoreConnections.setUp/original