'setUp method for server usage.'

def setUp(self):

    super(ServerMigrationsSampleJsonTestV2_24, self).setUp()
    self.api.microversion = '2.24'
    self.uuid = self._post_server()
    self.context = context.RequestContext('fake', 'fake')
    fake_migration = {'source_node': self.compute.host, 'dest_node': 'node10', 'source_compute': 'compute1', 'dest_compute': 'compute12', 'migration_type': 'live-migration', 'instance_uuid': self.uuid, 'status': 'running'}
    self.migration = objects.Migration(context=self.context, **fake_migration)
    self.migration.create()
