[Zope3-checkins] CVS: Zope3/src/zope/app/security/tests - module.py:1.1.2.1 modulehookup.py:1.1.2.1 test_module.py:NONE test_modulehookup.py:NONE

Guido van Rossum guido@python.org
Mon, 23 Dec 2002 18:49:03 -0500


Update of /cvs-repository/Zope3/src/zope/app/security/tests
In directory cvs.zope.org:/tmp/cvs-serv1950

Added Files:
      Tag: NameGeddon-branch
	module.py modulehookup.py 
Removed Files:
      Tag: NameGeddon-branch
	test_module.py test_modulehookup.py 
Log Message:
Move non-test module to non-test name.

=== Added File Zope3/src/zope/app/security/tests/module.py ===
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
# 
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
# 
##############################################################################
"""This empty module is for containing objects used in the course of tests.

(There is a problem with the way the unit tests interact with the modules
being tests, so the objects can't be expected to show up in place.)"""


=== Added File Zope3/src/zope/app/security/tests/modulehookup.py ===
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
# 
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
# 
##############################################################################
"""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 zope.interface import Interface

PREFIX = "Zope.App.Security.tests.TestModule."
import zope.app.security.tests.test_module
TestModule.test_class = None
class I(Interface):
    def m1():
        pass
    def m2():
        pass

class I2(I):
    def m4():
        pass
    

TestModule.I = I
TestModule.I2 = I2

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

=== Removed File Zope3/src/zope/app/security/tests/test_module.py ===

=== Removed File Zope3/src/zope/app/security/tests/test_modulehookup.py ===