[Zope-CVS] CVS: Products/Basket/tests - testBasket.py:1.17
Chris McDonough
chrism at plope.com
Wed Nov 9 16:43:28 EST 2005
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):
More information about the Zope-CVS
mailing list