[Zope-CVS] CVS: Products/CompositePage/tests - test_composite.py:1.4
Shane Hathaway
shane at zope.com
Tue Apr 13 15:12:35 EDT 2004
Update of /cvs-repository/Products/CompositePage/tests
In directory cvs.zope.org:/tmp/cvs-serv1892/tests
Modified Files:
test_composite.py
Log Message:
Removed support for METAL-based slot definition syntax.
It broke in too many ways. It has been replaced by a new TAL
expression type, "slot:". See www/sample_template.zpt for an example.
=== Products/CompositePage/tests/test_composite.py 1.3 => 1.4 ===
--- Products/CompositePage/tests/test_composite.py:1.3 Fri Mar 12 13:46:16 2004
+++ Products/CompositePage/tests/test_composite.py Tue Apr 13 15:12:04 2004
@@ -42,14 +42,6 @@
</html>
'''
-metal_template_text = '''\
-<html metal:define-macro="page">
-<body>
-<div metal:define-slot="slot_a">slot_a</div>
-</body>
-</html>
-'''
-
class CompositeTests(unittest.TestCase):
@@ -115,16 +107,6 @@
self.assertEqual(
manifest[2]['target_path'], 'composite/filled_slots/slot_c')
self.assertEqual(len(manifest[2]['elements']), 0)
-
- def testMetal(self):
- t = ZopePageTemplate(
- id="template", text=metal_template_text, content_type="text/html")
- self.composite.template = t
- rendered = self.composite()
- expected = ('<html><body>'
- '<div class="slot_header"></div><div><b>Slot A</b></div>'
- '</body></html>')
- self.assertTextEqual(rendered, expected)
def testSlotExprCompilerError(self):
# Bad slot expressions should produce a reasonable error.
More information about the Zope-CVS
mailing list