Commit 85affcf9 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use beforeTearDown() instead of tearDown().

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26312 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3bd313f5
##############################################################################
# -*- coding: utf-8 -*-
#
# Copyright (c) 2004, 2005, 2006 Nexedi SARL and Contributors.
# All Rights Reserved.
......@@ -80,7 +81,7 @@ class TestERP5Web(ERP5TypeTestCase, ZopeTestCase.Functional):
self.web_site_module = self.portal.web_site_module
self.portal_id = self.portal.getId()
def tearDown(self):
def beforeTearDown(self):
get_transaction().abort()
def clearModule(module):
module.manage_delObjects(list(module.objectIds()))
......@@ -783,7 +784,7 @@ class TestERP5WebWithSimpleSecurity(ERP5TypeTestCase):
get_transaction().commit()
self.tic()
def tearDown(self):
def beforeTearDown(self):
get_transaction().abort()
def clearModule(module):
module.manage_delObjects(list(module.objectIds()))
......
......@@ -77,7 +77,7 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional):
self.web_site_module = self.portal.web_site_module
self.portal_id = self.portal.getId()
def tearDown(self):
def beforeTearDown(self):
get_transaction().abort()
def clearModule(module):
module.manage_delObjects(list(module.objectIds()))
......
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