A test case that imports an old style class, instantiates it and calls

a method on it. This currently fails, primarily because of a stupidity
in zope.traversing.adapters.traversePathElement and secondarily because
of other funkiness.
parent 4e689d62
<p tal:define="now modules/DateTime/DateTime" tal:content="now/isCurrentYear" />
......@@ -162,6 +162,9 @@ class HTMLTests(zope.component.testing.PlacelessSetup, unittest.TestCase):
self.assert_expected(self.folder.t, 'CheckI18nTranslateHooked.html')
setGlobalTranslationService(old_ts)
def checkImportOldStyleClass(self):
self.assert_expected(self.folder.t, 'CheckImportOldStyleClass.html')
def test_suite():
return unittest.makeSuite(HTMLTests, 'check')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment