def setUp(self):
    super(LiveMigrationTaskTestCase, self).setUp()
    self.context = 'context'
    self.instance_host = 'host'
    self.instance_uuid = 'uuid'
    self.instance_image = 'image_ref'
    db_instance = fake_instance.fake_db_instance(host=self.instance_host, uuid=self.instance_uuid, power_state=power_state.RUNNING, memory_mb=512, image_ref=self.instance_image)
    self.instance = objects.Instance._from_db_object(self.context, objects.Instance(), db_instance)
    self.destination = 'destination'
    self.block_migration = 'bm'
    self.disk_over_commit = 'doc'
    self._generate_task()
def setUp(self):
    super(LiveMigrationTaskTestCase, self).setUp()
    self.context = 'context'
    self.instance_host = 'host'
    self.instance_uuid = 'uuid'
    self.instance_image = 'image_ref'
    db_instance = fake_instance.fake_db_instance(host=self.instance_host, uuid=self.instance_uuid, power_state=power_state.RUNNING, memory_mb=512, image_ref=self.instance_image)
    self.instance = objects.Instance._from_db_object(self.context, objects.Instance(), db_instance)
    self.destination = 'destination'
    self.block_migration = 'bm'
    self.disk_over_commit = 'doc'
    self._generate_task()