From ed2d14004304199cb60d96d949d6d0f26254cb32 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 15 Jan 2009 14:03:15 +0000 Subject: Get rid of PlacelessSetup. --- repoze/bfg/tests/test_zcml.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'repoze/bfg/tests/test_zcml.py') diff --git a/repoze/bfg/tests/test_zcml.py b/repoze/bfg/tests/test_zcml.py index bed1708c0..560c5ffbb 100644 --- a/repoze/bfg/tests/test_zcml.py +++ b/repoze/bfg/tests/test_zcml.py @@ -1,13 +1,13 @@ import unittest -from zope.component.testing import PlacelessSetup +from zope.testing.cleanup import cleanUp -class TestViewDirective(unittest.TestCase, PlacelessSetup): +class TestViewDirective(unittest.TestCase): def setUp(self): - PlacelessSetup.setUp(self) + cleanUp() def tearDown(self): - PlacelessSetup.tearDown(self) + cleanUp() def _callFUT(self, *arg, **kw): from repoze.bfg.zcml import view @@ -227,12 +227,12 @@ class TestViewDirective(unittest.TestCase, PlacelessSetup): self.assertEqual(regadapt['args'][5], None) -class TestFixtureApp(unittest.TestCase, PlacelessSetup): +class TestFixtureApp(unittest.TestCase): def setUp(self): - PlacelessSetup.setUp(self) + cleanUp() def tearDown(self): - PlacelessSetup.tearDown(self) + cleanUp() def test_registry_actions_can_be_pickled_and_unpickled(self): import repoze.bfg.tests.fixtureapp as package @@ -249,11 +249,11 @@ class TestFixtureApp(unittest.TestCase, PlacelessSetup): new = cPickle.loads(dumped) self.assertEqual(len(actions), len(new)) -class TestZCMLPickling(unittest.TestCase, PlacelessSetup): +class TestZCMLPickling(unittest.TestCase): i = 0 def setUp(self): + cleanUp() self.tempdir = None - PlacelessSetup.setUp(self) import sys import os import tempfile @@ -274,7 +274,7 @@ class TestZCMLPickling(unittest.TestCase, PlacelessSetup): self.tempdir = tempdir def tearDown(self): - PlacelessSetup.tearDown(self) + cleanUp() import sys import shutil if self.module is not None: -- cgit v1.2.3