[Zope-Checkins] CVS: Zope/lib/python/Products/PageTemplates/tests - testHTMLTests.py:1.17
Fred L. Drake, Jr.
fred@zope.com
Thu, 27 Feb 2003 11:23:41 -0500
Update of /cvs-repository/Zope/lib/python/Products/PageTemplates/tests
In directory cvs.zope.org:/tmp/cvs-serv25987
Modified Files:
testHTMLTests.py
Log Message:
Remove more uses of apply().
=== Zope/lib/python/Products/PageTemplates/tests/testHTMLTests.py 1.16 => 1.17 ===
--- Zope/lib/python/Products/PageTemplates/tests/testHTMLTests.py:1.16 Thu Jan 30 13:18:39 2003
+++ Zope/lib/python/Products/PageTemplates/tests/testHTMLTests.py Thu Feb 27 11:23:39 2003
@@ -77,7 +77,7 @@
t.write(util.read_input(fname))
assert not t._v_errors, 'Template errors: %s' % t._v_errors
expect = util.read_output(fname)
- out = apply(t, args, kwargs)
+ out = t(*args, **kwargs)
util.check_html(expect, out)
def assert_expected_unicode(self, t, fname, *args, **kwargs):
@@ -85,7 +85,7 @@
assert not t._v_errors, 'Template errors: %s' % t._v_errors
expect = util.read_output(fname)
expect = unicode(expect, 'utf8')
- out = apply(t, args, kwargs)
+ out = t(*args, **kwargs)
util.check_html(expect, out)
def getProducts(self):