[Zope3-checkins] SVN: Zope3/trunk/src/zope/importtool/tests/ fix
tests;
they were written and run before the test_hook module was moved to
Fred L. Drake, Jr.
fred at zope.com
Thu May 27 22:27:35 EDT 2004
Log message for revision 25072:
fix tests; they were written and run before the test_hook module was moved to
a sub-package
-=-
Added: Zope3/trunk/src/zope/importtool/tests/sample.py
===================================================================
--- Zope3/trunk/src/zope/importtool/tests/sample.py 2004-05-27 22:32:09 UTC (rev 25071)
+++ Zope3/trunk/src/zope/importtool/tests/sample.py 2004-05-28 02:27:35 UTC (rev 25072)
@@ -0,0 +1,18 @@
+##############################################################################
+#
+# Copyright (c) 2004 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.
+#
+##############################################################################
+"""Module containing something for tests to import.
+
+$Id$
+"""
+THE_ANSWER = 42
Property changes on: Zope3/trunk/src/zope/importtool/tests/sample.py
___________________________________________________________________
Name: svn:mime-type
+ text/x-python
Name: svn:eol-style
+ native
Modified: Zope3/trunk/src/zope/importtool/tests/test_hook.py
===================================================================
--- Zope3/trunk/src/zope/importtool/tests/test_hook.py 2004-05-27 22:32:09 UTC (rev 25071)
+++ Zope3/trunk/src/zope/importtool/tests/test_hook.py 2004-05-28 02:27:35 UTC (rev 25072)
@@ -81,12 +81,13 @@
hook.install_reporter(self.report)
import sys
import sys
- from hook import install_reporter
+ from sample import THE_ANSWER
self.assertEqual(
self.reports,
[(__name__, "sys", "sys", None),
(__name__, "sys", "sys", None),
- (__name__, "zope.importtool.hook", "hook", ("install_reporter",)),
+ (__name__, "zope.importtool.tests.sample", "sample",
+ ("THE_ANSWER",)),
])
def test_exception_from_reporter(self):
@@ -101,4 +102,3 @@
def test_suite():
return unittest.makeSuite(HookTestCase)
-
More information about the Zope3-Checkins
mailing list