[Zope-Checkins] SVN: Zope/branches/2.9/lib/python/Products/PageTemplates/tests/ Give test a better name

Philipp von Weitershausen philikon at philikon.de
Mon Jan 8 08:04:39 EST 2007


Log message for revision 71797:
  Give test a better name
  

Changed:
  D   Zope/branches/2.9/lib/python/Products/PageTemplates/tests/input/Attributes.html
  A   Zope/branches/2.9/lib/python/Products/PageTemplates/tests/input/BooleanAttributesAndDefault.html
  D   Zope/branches/2.9/lib/python/Products/PageTemplates/tests/output/Attributes.html
  A   Zope/branches/2.9/lib/python/Products/PageTemplates/tests/output/BooleanAttributesAndDefault.html
  U   Zope/branches/2.9/lib/python/Products/PageTemplates/tests/testHTMLTests.py

-=-
Deleted: Zope/branches/2.9/lib/python/Products/PageTemplates/tests/input/Attributes.html
===================================================================
--- Zope/branches/2.9/lib/python/Products/PageTemplates/tests/input/Attributes.html	2007-01-08 12:56:56 UTC (rev 71796)
+++ Zope/branches/2.9/lib/python/Products/PageTemplates/tests/input/Attributes.html	2007-01-08 13:04:38 UTC (rev 71797)
@@ -1,7 +0,0 @@
-<html>
-<head></head>
-<body>
-<p tal:attributes="disabled python:True and default or 'disabled'"></p>
-<p tal:attributes="disabled python:False and default or 'disabled'"></p>
-</body>
-</html>

Copied: Zope/branches/2.9/lib/python/Products/PageTemplates/tests/input/BooleanAttributesAndDefault.html (from rev 71791, Zope/branches/2.9/lib/python/Products/PageTemplates/tests/input/Attributes.html)

Deleted: Zope/branches/2.9/lib/python/Products/PageTemplates/tests/output/Attributes.html
===================================================================
--- Zope/branches/2.9/lib/python/Products/PageTemplates/tests/output/Attributes.html	2007-01-08 12:56:56 UTC (rev 71796)
+++ Zope/branches/2.9/lib/python/Products/PageTemplates/tests/output/Attributes.html	2007-01-08 13:04:38 UTC (rev 71797)
@@ -1,7 +0,0 @@
-<html>
-<head></head>
-<body>
-<p></p>
-<p disabled="disabled"></p>
-</body>
-</html>

Copied: Zope/branches/2.9/lib/python/Products/PageTemplates/tests/output/BooleanAttributesAndDefault.html (from rev 71791, Zope/branches/2.9/lib/python/Products/PageTemplates/tests/output/Attributes.html)

Modified: Zope/branches/2.9/lib/python/Products/PageTemplates/tests/testHTMLTests.py
===================================================================
--- Zope/branches/2.9/lib/python/Products/PageTemplates/tests/testHTMLTests.py	2007-01-08 12:56:56 UTC (rev 71796)
+++ Zope/branches/2.9/lib/python/Products/PageTemplates/tests/testHTMLTests.py	2007-01-08 13:04:38 UTC (rev 71797)
@@ -156,8 +156,11 @@
         self.assert_expected(self.folder.t, 'CheckI18nTranslateHooked.html')
         setGlobalTranslationService(old_ts)
 
-    def checkAttributes(self):
-        self.assert_expected(self.folder.t, 'Attributes.html')
+    def checkBooleanAttributesAndDefault(self):
+        # Zope 2.9 and below support the semantics that an HTML
+        # "boolean" attribute (e.g. 'selected', 'disabled', etc.) can
+        # be used together with 'default'.
+        self.assert_expected(self.folder.t, 'BooleanAttributesAndDefault.html')
 
 def test_suite():
     return unittest.makeSuite(HTMLTests, 'check')



More information about the Zope-Checkins mailing list