[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security/tests - testmodulehookup.py:1.1.2.1

Ken Manheimer klm@zope.com
Fri, 30 Nov 2001 17:10:09 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Security/tests
In directory cvs.zope.org:/tmp/cvs-serv26286/tests

Added Files:
      Tag: Zope-3x-branch
	testmodulehookup.py 
Log Message:
Code mostly moved from testProtectClass.


=== Added File Zope3/lib/python/Zope/App/Security/tests/testmodulehookup.py ===
"""Preliminaries to hookup a test suite with the external testmodule.

This is necessary because the test framework interferes with seeing changes in
the running modules via the module namespace.  This enables having some
subject classes, instances, permissions, etc, that don't live in the test
modules, themselves."""

from Interface import Interface

PREFIX = "Zope.App.Security.tests.testmodule."
import Zope.App.Security.tests.testmodule as testmodule
testmodule.test_class = None
class I(Interface):
    def m1():
        pass
    def m2():
        pass
testmodule.I = I

template_bracket = """<zopeConfigure
   xmlns="http://namespaces.zope.org/zope"
   xmlns:security='http://namespaces.zope.org/security'>
   %s
</zopeConfigure>"""