#NEWLINE# def test_port_show( self ) : #NEWLINE# #INDENT# actual = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# fake_print_dict = ( lambda data , * args , **kwargs : actual . update ( data ) ) #NEWLINE# with mock . patch . object ( cliutils , 'print_dict' , exp ) : #NEWLINE# #INDENT# port = object ( ) #NEWLINE# p_shell . _print_port_show ( port ) #NEWLINE# #UNINDENT# exp = [ 'address' , 'created_at' , 'extra' , 'node_uuid' , 'updated_at' , 'uuid' ] #NEWLINE# act = actual . keys ( ) #NEWLINE# self . assertEqual ( sorted ( exp ) , sorted ( act ) )