Commit 1ec27b1a authored by Hanno Schlichting's avatar Hanno Schlichting

Use actual deprecation as used for the other Five refactorings and move a test next to its new code

parent 1d344ac3
# BBB
from Zope2.App.schema import Zope2VocabularyRegistry
from zope.deferredimport import deprecated
deprecated("Please import from Zope2.App.schema",
Zope2VocabularyRegistry = 'Zope2.App.schema:Zope2VocabularyRegistry',
)
# BBB
from Zope2.App.zcml import _context
from Zope2.App.zcml import _initialized
from zope.deferredimport import deprecated
from Zope2.App.zcml import load_site
from Zope2.App.zcml import load_config
from Zope2.App.zcml import load_string
from Zope2.App.zcml import cleanUp
deprecated("Please import from Zope2.App.zcml",
_context = 'Zope2.App.zcml:_context',
_initialized = 'Zope2.App.zcml:_initialized',
cleanUp = 'Zope2.App.zcml:cleanUp',
load_config = 'Zope2.App.zcml:load_config',
load_site = 'Zope2.App.zcml:load_site',
load_string = 'Zope2.App.zcml:load_string',
)
......@@ -10,17 +10,15 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
""" Unit tests for Products.Five.schema module.
$Id: tests.py 71093 2006-11-07 13:54:29Z yuppie $
"""
import unittest
from zope.testing.cleanup import CleanUp
class Zope2VocabularyRegistryTests(unittest.TestCase, CleanUp):
def _getTargetClass(self):
from Products.Five.schema import Zope2VocabularyRegistry
from ..schema import Zope2VocabularyRegistry
return Zope2VocabularyRegistry
def _makeOne(self):
......
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