CVS: Products/Basket/tests - testBasket.py:1.17

Chris McDonough <[email protected]>
Newsgroups gmane.comp.web.zope.public-cvs
Message-ID <[email protected]>
Update of /cvs-repository/Products/Basket/tests
In directory cvs.zope.org:/tmp/cvs-serv29122/tests

Modified Files:
	testBasket.py 
Log Message:
Fix DTMLResource with/without '.dtml' prefix schizophrenia.



=== Products/Basket/tests/testBasket.py 1.16 => 1.17 ===
--- Products/Basket/tests/testBasket.py:1.16	Wed Nov  9 15:58:18 2005
+++ Products/Basket/tests/testBasket.py	Wed Nov  9 16:43:28 2005
@@ -328,7 +328,7 @@
         data = context.install()
         from OFS import Application
         self.assertEqual(
-            Application.misc_.__dict__['DummyProduct']['afunction'],
+            Application.misc_.misc_.__dict__['DummyProduct']['afunction'],
             afunction)
 
     def test__ac_permissions__set(self):
@@ -588,7 +588,7 @@
         from Globals import DTMLResource
         dtml = DTMLResource(path, module=module)
         self.assertEqual(dtml.__name__, os.path.basename(path))
-        expected = pkg_resources.resource_string(module, path)
+        expected = pkg_resources.resource_string(module, path + '.dtml')
         self.assertEqual(dtml.read_raw(), expected)
 
     def test_disk_dtml_resource(self):

_______________________________________________
Zope-CVS maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zope-cvs

Zope CVS instructions: http://dev.zope.org/CVS
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.