def ForTest(file_system): object_store_creator = ObjectStoreCreator.ForTest() return ServerInstance( object_store_creator, file_system, EmptyDirFileSystem(), '', CompiledFileSystem.Factory(file_system, object_store_creator), TestBranchUtility.CreateWithCannedData(), HostFileSystemCreator.ForTest(file_system, object_store_creator))
def CreateHostFileSystemCreator(self, object_store_creator): return HostFileSystemCreator.ForTest(FailOnAccessFileSystem(), object_store_creator)