| 2.) adding BBBTransaction to CMFCore.tests.base.utils and using this in | tests:
| | try:
| import transaction
| except ImportError:
| # BBB: for Zope 2.7
| from Products.CMFCore.tests.base.utils import transaction
Why not just import from CMFCore.test.base.utils straight?
Good question ;)
All I know is that
- CMF uses that pattern in all test files
- 'Products.CMFCore.foo' seems to work with any testing setup
- with my setup 'CMFCore.foo' doesn't work if I run tests outside test.py
Cheers, Yuppie
_______________________________________________ Zope-CMF maillist - [email protected] http://mail.zope.org/mailman/listinfo/zope-cmf
See http://collector.zope.org/CMF for bug reports and feature requests
