#NEWLINE# def test_object_to_dict( self ) : #NEWLINE# #INDENT# top_obj = objects . VirtCPUTopology ( ) #NEWLINE# top_obj . sockets = 2 #NEWLINE# top_obj . cores = 4 #NEWLINE# top_obj . threads = 8 #NEWLINE# spec = top_obj . to_dict ( ) #NEWLINE# self . assertEqual ( _top_dict , spec )