From a982d7f6e1603c93bdba3e2f2835f30e0ef178cf Mon Sep 17 00:00:00 2001 From: Rafael Monnerat <rafael@nexedi.com> Date: Tue, 30 Sep 2008 22:11:43 +0000 Subject: [PATCH] Removed useless code. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23920 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/tests/testPlanningBox.py | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/product/ERP5Form/tests/testPlanningBox.py b/product/ERP5Form/tests/testPlanningBox.py index c7a792857a..ce038b77fa 100644 --- a/product/ERP5Form/tests/testPlanningBox.py +++ b/product/ERP5Form/tests/testPlanningBox.py @@ -26,20 +26,11 @@ # ############################################################################## -import os, sys -if __name__ == '__main__': - execfile(os.path.join(sys.path[0], 'framework.py')) - from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from AccessControl.SecurityManagement import newSecurityManager -from zLOG import LOG from Products.ERP5Type.tests.Sequence import SequenceList -from Testing import ZopeTestCase from Products.ERP5Type.Utils import get_request -from Products.ERP5Type.tests.utils import createZODBPythonScript -from ZPublisher.HTTPRequest import FileUpload from StringIO import StringIO -from Products.ERP5Form.Selection import Selection from DateTime import DateTime class DummyFieldStorage: @@ -156,12 +147,9 @@ class TestPlanningBox(ERP5TypeTestCase): sequence_list.addSequenceString(sequence_string) sequence_list.play(self, quiet=quiet) -if __name__ == '__main__': - framework() -else: - import unittest - def test_suite(): - suite = unittest.TestSuite() - suite.addTest(unittest.makeSuite(TestPlanningBox)) - return suite +import unittest +def test_suite(): + suite = unittest.TestSuite() + suite.addTest(unittest.makeSuite(TestPlanningBox)) + return suite -- 2.30.9