#NEWLINE# @ mock . patch ( 'oslo_log.log.getLogger' ) #NEWLINE# @ mock . patch ( 'six.moves.builtins.open' ) #NEWLINE# def test__read_params_from_file_fail( self , logger_mock , open_mock ) : #NEWLINE# #INDENT# open_mock . side_effect = Exception #NEWLINE# params = utils . _read_params_from_file ( 'file-path' ) #NEWLINE# self . assertEqual ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , open_mock )