#NEWLINE# def test_apply_revert_migration_context( self ) : #NEWLINE# #INDENT# inst = instance . Instance ( context = self . context , uuid = uuids . instance , numa_topology = None ) #NEWLINE# inst . migration_context = test_mig_ctxt . get_fake_migration_context_obj ( self . context ) #NEWLINE# inst . apply_migration_context ( ) #NEWLINE# self . assertIsInstance ( inst . numa_topology , objects . InstanceNUMATopology ) #NEWLINE# inst . revert_migration_context ( ) #NEWLINE# self . assertIsNone ( inst . numa_topology )