def create_blockdevicedeployer(test_case, hostname=u'192.0.2.1', node_uuid=uuid4(), eventually_consistent=False):
 api = loopbackblockdeviceapi_for_test(test_case)
 if eventually_consistent:
  api = EventuallyConsistentBlockDeviceAPI(api)
 async_api = _SyncToThreadedAsyncAPIAdapter(_sync=api, _reactor=NonReactor(), _threadpool=NonThreadPool())
 return BlockDeviceDeployer(hostname=hostname, node_uuid=node_uuid, block_device_api=api, _async_block_device_api=async_api, mountroot=mountroot_for_test(test_case))

def create_blockdevicedeployer ( test_case , hostname = u'192.0.2.1' , node_uuid = uuid4 ( ) , eventually_consistent = False ) : api = loopbackblockdeviceapi_for_test ( test_case ) if eventually_consistent : api = EventuallyConsistentBlockDeviceAPI ( api ) async_api = _SyncToThreadedAsyncAPIAdapter ( _sync = api , _reactor = NonReactor ( ) , _threadpool = NonThreadPool ( ) ) return BlockDeviceDeployer ( hostname = hostname , node_uuid = node_uuid , block_device_api = api , _async_block_device_api = async_api , mountroot = mountroot_for_test ( test_case ) )
create a new blockdevicedeployer .