def create_volume_service(test):
 service = VolumeService(FilePath(test.mktemp()), FilesystemStoragePool(FilePath(test.mktemp())), reactor=Clock())
 service.startService()
 test.addCleanup(service.stopService)
 return service

def create_volume_service ( test ) : service = VolumeService ( FilePath ( test . mktemp ( ) ) , FilesystemStoragePool ( FilePath ( test . mktemp ( ) ) ) , reactor = Clock ( ) ) service . startService ( ) test . addCleanup ( service . stopService ) return service
create a new volumeservice suitable for use in unit tests .