

def test_get_container_name_with_negative_seed(self):
    test_image_id.config(swift_store_multiple_containers_seed=(- 1))
    self.store = swift.SingleTenantStore(self.conf)
    test_image_id = 'random_id'
    self.assertRaises(exceptions.BadStoreConfiguration, self.store.get_container_name, test_image_id, 'default_container')

dataset/ETHPy150Open openstack/glance_store/glance_store/tests/unit/test_swift_store.py TestMultipleContainers.test_get_container_name_with_negative_seed/VarMisuse@10/17 `self`->`test_image_id`