diff options
Diffstat (limited to 'repoze/bfg/tests/test_view.py')
| -rw-r--r-- | repoze/bfg/tests/test_view.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/repoze/bfg/tests/test_view.py b/repoze/bfg/tests/test_view.py deleted file mode 100644 index a78fe514a..000000000 --- a/repoze/bfg/tests/test_view.py +++ /dev/null @@ -1,34 +0,0 @@ -import unittest - -from zope.component.testing import PlacelessSetup - -class Base(PlacelessSetup): - def setUp(self): - PlacelessSetup.setUp(self) - - def tearDown(self): - PlacelessSetup.tearDown(self) - - def _zcmlConfigure(self): - import repoze.bfg - import zope.configuration.xmlconfig - zope.configuration.xmlconfig.file('configure.zcml', package=repoze.bfg) - - def _getTemplatePath(self, name): - import os - here = os.path.abspath(os.path.dirname(__file__)) - return os.path.join(here, 'fixtures', name) - -class ViewFactoryTests(unittest.TestCase): - def _getTargetClass(self): - from repoze.bfg.view import ViewFactory - return ViewFactory - - def _makeOne(self, *arg, **kw): - klass = self._getTargetClass() - return klass(*arg, **kw) - - def test_call(self): - view = self._makeOne(None, None) - self.assertRaises(NotImplementedError, view) - |
