'Test to see if the pre-requisites for the image cache
are working (python-sqlite3 installed)'

def setUp(self):

    super(TestImageCacheSqlite, self).setUp()
    if getattr(self, 'disable', False):
        return
    if (not getattr(self, 'inited', False)):
        try:
            import sqlite3
        except ImportError:
            self.inited = True
            self.disabled = True
            self.disabled_message = 'python-sqlite3    not    installed.'
            return
    self.inited = True
    self.disabled = False
    self.cache_dir = self.useFixture(fixtures.TempDir()).path
    self.config(image_cache_dir=self.cache_dir, image_cache_driver='sqlite', image_cache_max_size=(5 * units.Ki))
    self.cache = image_cache.ImageCache()
