'Test to see if the pre-requisites for the image cache
are working (python-xattr installed and xattr support on the
filesystem)'

def setUp(self):

    if getattr(self, 'disabled', False):
        return
    if (not getattr(self, 'inited', False)):
        try:
            import xattr
        except ImportError:
            self.inited = True
            self.disabled = True
            self.disabled_message = 'python-xattr    not    installed.'
            return
    self.inited = True
    self.disabled = False
    self.image_cache_driver = 'xattr'
    super(TestImageCacheManageXattr, self).setUp()
    self.api_server.deployment_flavor = 'cachemanagement'
    if (not xattr_writes_supported(self.test_dir)):
        self.inited = True
        self.disabled = True
        self.disabled_message = 'filesystem    does    not    support    xattr'
        return
