#NEWLINE# def test_clear_numa_topology( self ) : #NEWLINE# #INDENT# numa_topology = test_instance_numa_topology . fake_obj_numa_topology . obj_clone ( ) #NEWLINE# numa_topology . cells [ 0 ] . id = 42 #NEWLINE# numa_topology . cells [ 1 ] . id = 43 #NEWLINE# inst = instance . Instance ( context = inst . context , uuid = uuids . instance , numa_topology = numa_topology ) #NEWLINE# inst . obj_reset_changes ( ) #NEWLINE# inst . clear_numa_topology ( ) #NEWLINE# self . assertIn ( 'numa_topology' , inst . obj_what_changed ( ) ) #NEWLINE# self . assertEqual ( ( - 1 ) , numa_topology . cells [ 0 ] . id ) #NEWLINE# self . assertEqual ( ( - 1 ) , numa_topology . cells [ 1 ] . id )