Commit ed547af3 authored by Jérome Perrin's avatar Jérome Perrin

remove unused imports


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16166 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 502791de
...@@ -27,35 +27,12 @@ ...@@ -27,35 +27,12 @@
# #
############################################################################## ##############################################################################
#
# Skeleton ZopeTestCase
#
from random import randint
import os
import sys
import unittest import unittest
import time
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
# Needed in order to have a log file inside the current folder
os.environ['EVENT_LOG_FILE'] = os.path.join(os.getcwd(), 'zLOG.log')
os.environ['EVENT_LOG_SEVERITY'] = '-300'
from Testing import ZopeTestCase
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from AccessControl.SecurityManagement import newSecurityManager, \ from AccessControl.SecurityManagement import newSecurityManager
noSecurityManager from Products.ERP5Type.tests.Sequence import SequenceList
from DateTime import DateTime
from Acquisition import aq_base, aq_inner
from zLOG import LOG
from Products.ERP5Type.DateUtils import addToDate
from Products.ERP5Type.tests.Sequence import Sequence, SequenceList
from zExceptions import BadRequest from zExceptions import BadRequest
from Products.ERP5Type import product_path
from Products.CMFCore.utils import getToolByName
from Products.ERP5Type.Tool.ClassTool import _aq_reset from Products.ERP5Type.Tool.ClassTool import _aq_reset
class TestBase(ERP5TypeTestCase): class TestBase(ERP5TypeTestCase):
...@@ -1074,11 +1051,7 @@ class TestERP5PropertyManager(unittest.TestCase): ...@@ -1074,11 +1051,7 @@ class TestERP5PropertyManager(unittest.TestCase):
ob._setProperty('a_dummy_property', prop_value) ob._setProperty('a_dummy_property', prop_value)
self.assertEquals(ob.getProperty('a_dummy_property', 100), prop_value) self.assertEquals(ob.getProperty('a_dummy_property', 100), prop_value)
if __name__ == '__main__': def test_suite():
framework()
else:
import unittest
def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestBase)) suite.addTest(unittest.makeSuite(TestBase))
suite.addTest(unittest.makeSuite(TestERP5PropertyManager)) suite.addTest(unittest.makeSuite(TestERP5PropertyManager))
......
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