'This fixture mocks imagebackend.Backend.backend, which is the
only entry point to libvirt.imagebackend from libvirt.driver.
:param got_files: A list of {\'filename\': path, \'size\': size} for every
file which was created.
:param imported_files: A list of (local_filename, remote_filename) for
every invocation of import_file().
:param exists: An optional lambda which takes the disk name as an
argument, and returns True if the disk exists,
False otherwise.'

def __init__(self, got_files=None, imported_files=None, exists=None):

    self.got_files = got_files
    self.imported_files = imported_files
    self.disks = collections.defaultdict(self._mock_disk)
    'A    dict    of    name    ->    Mock    image    object.    This    is    a    defaultdict,\n                                so    tests    may    access    it    directly    before    a    disk    has    been    created.'
    self._exists = exists
