Ignore:
Timestamp:
18 Apr 2012, 12:48:54 (13 years ago)
Author:
uli
Message:

Move setUp/tearDown to top.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/widgets/tests/test_datetimewidget.py

    r8207 r8208  
    4040        ]
    4141
     42    def setUp(self):
     43        super(PytzDatetimeWidgetTests, self).setUp()
     44        self.gsm = getGlobalSiteManager()
     45        self.utils = FakeUtils()
     46        self.gsm.registerUtility(self.utils)
     47        return
     48
     49    def tearDown(self):
     50        super(PytzDatetimeWidgetTests, self).tearDown()
     51        self.gsm.unregisterUtility(self.utils)
     52        return
     53
    4254    def test_iface(self):
    4355        # make sure we fullfill interface contracts
     
    7587        return
    7688
    77     def setUp(self):
    78         super(PytzDatetimeWidgetTests, self).setUp()
    79         self.gsm = getGlobalSiteManager()
    80         self.utils = FakeUtils()
    81         self.gsm.registerUtility(self.utils)
    82         return
    83 
    84     def tearDown(self):
    85         super(PytzDatetimeWidgetTests, self).tearDown()
    86         self.gsm.unregisterUtility(self.utils)
    87         return
    88 
    8989    def test_datetimes_wo_tz(self):
    9090        # Datetimes w/o tz are considered to be meant in app-wide timezone.
Note: See TracChangeset for help on using the changeset viewer.