[Zope-Checkins] CVS: Zope3/lib/python/Zope/PageTemplate/tests - test_binding.py:1.1.2.1

Fred Drake Jr fdrake@acm.org
Mon, 19 Nov 2001 18:54:40 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/PageTemplate/tests
In directory cvs.zope.org:/tmp/cvs-serv1944

Added Files:
      Tag: Zope-3x-branch
	test_binding.py 
Log Message:
New test that checks binding of page template from a presentation component.

=== Added File Zope3/lib/python/Zope/PageTemplate/tests/test_binding.py ===
import unittest

from Zope.PageTemplate.tests.testpackage.content import Content, PTComponent


class BindingTestCase(unittest.TestCase):

    def test_(self):
        comp = PTComponent(Content())
        self.assertEqual(comp.index(), "42\n")


def test_suite():
    return unittest.makeSuite(BindingTestCase)

if __name__=='__main__':
    unittest.main()