def service_for_pool(test, pool):
 service = VolumeService(FilePath(test.mktemp()), pool, None)
 service.startService()
 test.addCleanup(service.stopService)
 return service

def service_for_pool ( test , pool ) : service = VolumeService ( FilePath ( test . mktemp ( ) ) , pool , None ) service . startService ( ) test . addCleanup ( service . stopService ) return service
create a volumeservice wrapping a pool suitable for use in tests .