#NEWLINE# def test_xslt_parameter_invalid( self ) : #NEWLINE# #INDENT# tree = self . parse ( '<a><b>B</b><c>C</c></a>' ) #NEWLINE# style = self . parse ( '<xsl:stylesheet version="1.0"\n    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\n  <xsl:param name="bar"/>\n  <xsl:template match="/">\n    <foo><xsl:value-of select="$bar" /></foo>\n  </xsl:template>\n</xsl:stylesheet>' ) #NEWLINE# st = etree . XSLT ( style ) #NEWLINE# res = self . assertRaises ( etree . XSLTApplyError , st , tree , bar = '<test/>' ) #NEWLINE# res = self . assertRaises ( etree . XSLTApplyError , style , tree , bar = '....' )