#NEWLINE# @ mock . patch ( 'certbot_apache.parser.ApacheParser._get_runtime_cfg' ) #NEWLINE# def test_unparsable( self , mock_cfg ) : #NEWLINE# #INDENT# from certbot_apache.parser import ApacheParser #NEWLINE# mock_cfg . return_value = 'Define: TEST' #NEWLINE# self . assertRaises ( errors . PluginError , ApacheParser , self . aug , os . path . relpath ( self . config_path ) , '/dummy/vhostpath' , version = ( 2 , 2 , 22 ) )