'Test that the runChdirSafe is actually safe, i.e., it still
changes back to the original directory even if an error is
raised.'

def test_chdir(self):

    cwd = os.getcwd()
    def chAndBreak():
        os.mkdir('releaseCh')
        os.chdir('releaseCh')
        (1 // 0)
    self.assertRaises(ZeroDivisionError, release.runChdirSafe, chAndBreak)
    self.assertEqual(cwd, os.getcwd())
