Changeset 10836 for main/waeup.uniben/trunk/src/waeup/uniben/students/tests
- Timestamp:
- 10 Dec 2013, 08:40:03 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r10740 r10836 37 37 38 38 39 class StudentProcessorTest(FunctionalTestCase):40 """Perform some batching tests.41 """42 43 layer = FunctionalLayer44 45 def setUp(self):46 super(StudentProcessorTest, self).setUp()47 # Setup a sample site for each test48 app = University()49 self.dc_root = tempfile.mkdtemp()50 app['datacenter'].setStoragePath(self.dc_root)51 52 # Prepopulate the ZODB...53 self.getRootFolder()['app'] = app54 # we add the site immediately after creation to the55 # ZODB. Catalogs and other local utilities are not setup56 # before that step.57 self.app = self.getRootFolder()['app']58 # Set site here. Some of the following setup code might need59 # to access grok.getSite() and should get our new app then60 setSite(app)61 62 63 def tearDown(self):64 super(StudentProcessorTest, self).tearDown()65 shutil.rmtree(self.workdir)66 shutil.rmtree(self.dc_root)67 clearSite()68 return69 70 39 class StudentUITests(StudentsFullSetup): 71 40 """Tests for customized student class views and pages
Note: See TracChangeset for help on using the changeset viewer.