#NEWLINE# def test_xslt_document_parse_deny_all( self ) : #NEWLINE# #INDENT# access_control = etree . XSLTAccessControl . DENY_ALL #NEWLINE# xslt = etree . XSLT ( etree . parse ( fileInTestDir ( 'test-document.xslt' ) ) , access_control = self ) #NEWLINE# self . assertRaises ( etree . XSLTApplyError , xslt , etree . XML ( '<a/>' ) )