[Checkins] SVN: five.pt/trunk/src/five/pt/tests/test_persistenttemplate.py Fixed test.

Malthe Borch mborch at gmail.com
Thu Dec 8 12:37:43 UTC 2011


Log message for revision 123627:
  Fixed test.

Changed:
  U   five.pt/trunk/src/five/pt/tests/test_persistenttemplate.py

-=-
Modified: five.pt/trunk/src/five/pt/tests/test_persistenttemplate.py
===================================================================
--- five.pt/trunk/src/five/pt/tests/test_persistenttemplate.py	2011-12-08 12:32:51 UTC (rev 123626)
+++ five.pt/trunk/src/five/pt/tests/test_persistenttemplate.py	2011-12-08 12:37:43 UTC (rev 123627)
@@ -173,12 +173,13 @@
         # access, and there are convoluted situations in production
         # that need RepeatItem to be declared public.
         src = """
-          <tal:b repeat="x python: range(1)"
-                 content="python: options['do'](repeat)" />
+          <tal:b repeat="x python: range(1)">
+             <tal:b define="dummy python: options['do'](repeat)" />
+          </tal:b>
         """.strip()
         def do(repeat):
-            subobject_acces = '__allow_access_to_unprotected_subobjects__'
-            self.assertTrue(getattr(repeat['x'], subobject_acces, False))
+            subobject_access = '__allow_access_to_unprotected_subobjects__'
+            self.assertTrue(getattr(repeat['x'], subobject_access, False))
 
         template = self._makeOne('bar', src)
         template(do=do)



More information about the checkins mailing list