Refactor some tests to avoid redoing setUp/tearDown once per test

This commit is contained in:
Renato Alves
2014-04-13 20:12:55 +01:00
parent 2e64231886
commit 13d7961813
2 changed files with 11 additions and 24 deletions

View File

@@ -43,15 +43,11 @@ class BaseTestBug1300(BaseTestCase):
fh.write("data.location=.\n"
"confirmation=no\n")
def tearDown(self):
"""Needed after each test or setUp will cause duplicated data at start
of the next test.
"""
@classmethod
def finish(cls):
for file in glob("*.data"):
os.remove(file)
@classmethod
def finish(cls):
os.remove("bug.rc")