#NEWLINE# def test_xslt_document_parse_allow( self ) : #NEWLINE# #INDENT# access_control = etree . XSLTAccessControl ( read_file = True ) #NEWLINE# xslt = etree . XSLT ( etree . parse ( fileInTestDir ( 'test-document.xslt' ) ) , access_control = access_control ) #NEWLINE# result = xslt ( etree . XML ( '<a/>' ) ) #NEWLINE# root = result . getroot ( ) #NEWLINE# self . assertEqual ( root . tag , 'test' ) #NEWLINE# self . assertEqual ( root [ 0 ] . tag , '{http://www.w3.org/1999/XSL/Transform}stylesheet' )