def tearDown(self):
    super(TestCase, self).tearDown()
    os.chdir(self._old_cwd)
    cleanup_tempfiles()
    if self.old_home:
        self.set_user_home(self.old_home)
def tearDown(self):
    super(TestCase, self).tearDown()
    os.chdir(self._old_cwd)
    cleanup_tempfiles()
    if self.old_home:
        self.set_user_home(self.old_home)