def make_createblockdevicedataset_mixin(profiled_api):
 class Mixin(CreateBlockDeviceDatasetImplementationMixin, TestCase, ):
  def setUp(self):
   super(Mixin, self).setUp()
   if profiled_api:
    self.api = fakeprofiledloopbackblockdeviceapi_for_test(self, allocation_unit=LOOPBACK_ALLOCATION_UNIT)
   else:
    self.api = loopbackblockdeviceapi_for_test(self, allocation_unit=LOOPBACK_ALLOCATION_UNIT)
   self.mountroot = mountroot_for_test(self)
   self.deployer = BlockDeviceDeployer(node_uuid=uuid4(), hostname=u'192.0.2.10', block_device_api=self.api, mountroot=self.mountroot)
 return Mixin

def make_createblockdevicedataset_mixin ( profiled_api ) : class Mixin ( CreateBlockDeviceDatasetImplementationMixin , TestCase , ) : def setUp ( self ) : super ( Mixin , self ) . setUp ( ) if profiled_api : self . api = fakeprofiledloopbackblockdeviceapi_for_test ( self , allocation_unit = LOOPBACK_ALLOCATION_UNIT ) else : self . api = loopbackblockdeviceapi_for_test ( self , allocation_unit = LOOPBACK_ALLOCATION_UNIT ) self . mountroot = mountroot_for_test ( self ) self . deployer = BlockDeviceDeployer ( node_uuid = uuid4 ( ) , hostname = u'192.0.2.10' , block_device_api = self . api , mountroot = self . mountroot ) return Mixin
constructs a base class for tests that verify the implementation of createblockdevicedataset .