Changeset 6751


Ignore:
Timestamp:
14 Sep 2011, 00:31:55 (13 years ago)
Author:
uli
Message:

If you use a functional test setup and you define your own
setUp/tearDown methods, it is essential to call also the respective
super methods as they care for setting up the ZODB, component
registry, etc. If you don't, you do not need functional setups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_student.py

    r6635 r6751  
    1818import unittest
    1919from StringIO import StringIO
    20 from zope.app.testing.functional import FunctionalTestCase
    2120from zope.component import (
    2221    provideAdapter, adapts, getGlobalSiteManager, provideUtility)
     
    3635    IStudent, IStudentStudyCourse, IStudentPayments, IStudentAccommodation,
    3736    )
    38 from waeup.sirp.testing import FunctionalLayer
     37from waeup.sirp.testing import FunctionalLayer, FunctionalTestCase
    3938
    4039class StudentTest(FunctionalTestCase):
     
    7069
    7170    def setUp(self):
     71        super(StudentFactoryTest, self).setUp()
    7272        self.factory = StudentFactory()
    7373
    7474    def tearDown(self):
    75         pass
     75        super(StudentFactoryTest, self).tearDown()
    7676
    7777    def test_interfaces(self):
Note: See TracChangeset for help on using the changeset viewer.