def setUp(self):
    super(TestCase, self).setUp()
    self._old_cwd = os.getcwd()
    self.old_home = self.get_user_home()
    if self.needs_temp_home:
        self.set_user_home(make_tempdir())
    os.environ[str('RBTOOLS_EDITOR')] = str(self.default_text_editor)
def setUp(self):
    super(TestCase, self).setUp()
    self._old_cwd = os.getcwd()
    self.old_home = self.get_user_home()
    if self.needs_temp_home:
        self.set_user_home(make_tempdir())
    os.environ[str('RBTOOLS_EDITOR')] = str(self.default_text_editor)