#NEWLINE# @ mock . patch ( '__builtin__.print' ) #NEWLINE# def test_command_show_info_module_with_no_metadata( self , mock_print ) : #NEWLINE# #INDENT# metadata = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# description = 'Elaborate description fo the module' #NEWLINE# self . interpreter . current_module . __doc__ = description #NEWLINE# self . interpreter . current_module . _MagicMock__info__ = metadata #NEWLINE# self . interpreter . command_show ( 'info' ) #NEWLINE# self . assertEqual ( description . mock_calls , [ mock . call ( ) ] )