#NEWLINE# @ mock . patch ( 'certbot_apache.parser.ApacheParser._get_runtime_cfg' ) #NEWLINE# def test_update_runtime_vars_bad_output( self , mock_cfg ) : #NEWLINE# #INDENT# mock_cfg . return_value = 'Define: TLS=443=24' #NEWLINE# self . parser . update_runtime_variables ( ) #NEWLINE# mock_cfg . return_value = 'Define: DUMP_RUN_CFG\nDefine: TLS=443=24' #NEWLINE# self . assertRaises ( errors . PluginError , self . parser . update_runtime_variables )