[Zope3-checkins] SVN: Zope3/branches/fdrake-anguenot_better_xml_support_for_pt/src/zope/pagetemplate/tests/test_ptfile.py More tests

Julien Anguenot ja at nuxeo.com
Fri Oct 14 13:56:53 EDT 2005


Log message for revision 39453:
  More tests

Changed:
  U   Zope3/branches/fdrake-anguenot_better_xml_support_for_pt/src/zope/pagetemplate/tests/test_ptfile.py

-=-
Modified: Zope3/branches/fdrake-anguenot_better_xml_support_for_pt/src/zope/pagetemplate/tests/test_ptfile.py
===================================================================
--- Zope3/branches/fdrake-anguenot_better_xml_support_for_pt/src/zope/pagetemplate/tests/test_ptfile.py	2005-10-14 16:25:17 UTC (rev 39452)
+++ Zope3/branches/fdrake-anguenot_better_xml_support_for_pt/src/zope/pagetemplate/tests/test_ptfile.py	2005-10-14 17:56:52 UTC (rev 39453)
@@ -190,6 +190,12 @@
         self.assertEqual(
             sniff_type("<doc ><element xmlns='http://foo/bar'/></doc>"),
             'text/xml')
+        self.assertEqual(
+            sniff_type("<doc xmlns:foo='http://foo/'><element/></doc>"),
+            'text/xml')
+        self.assertEqual(
+            sniff_type("<doc ><element xmlns:foo='http://foo/'/></doc>"),
+            'text/xml')
 
 def test_suite():
     return unittest.makeSuite(TypeSniffingTestCase)



More information about the Zope3-Checkins mailing list