Commit 7ee95f79 authored by Hanno Schlichting's avatar Hanno Schlichting

Adjusted the test, now that we fixed the most trivial error

parent 0a50ced0
...@@ -173,12 +173,11 @@ ViewPageTemplateFile's take arbitrary keyword arguments: ...@@ -173,12 +173,11 @@ ViewPageTemplateFile's take arbitrary keyword arguments:
>>> print template(foo=1, bar=2) >>> print template(foo=1, bar=2)
<p>The falcon has taken flight</p> <p>The falcon has taken flight</p>
XXX This fails currently with an error: Passing in an argument called instance was supported by the old Five version
TypeError: __call__() got multiple values for keyword argument 'instance' of ViewPageTemplateFile, so we still need to support it.
KSS is one example which passes in a keyword argument called 'instance' and In the zope.app.pagetemplate version, the first required argument is called
the Five ViewPageTemplateFile supported it. In the zope.app.pagetemplate instance, though.
version, the first required argument is called instance.
>>> print template(instance='allowed') >>> print template(instance='allowed')
<p>The falcon has taken flight</p> <p>The falcon has taken flight</p>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment