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