--- a/review/tests/util.py Wed Jul 21 19:13:42 2010 -0400
+++ b/review/tests/util.py Thu Jul 22 18:26:29 2010 -0400
@@ -41,6 +41,7 @@
sandbox_repo_path = os.path.join(sandbox_path, 'original')
sandbox_clone_path = os.path.join(sandbox_path, 'clone')
+
def setup_sandbox():
os.mkdir(sandbox_path)
os.chdir(sandbox_path)
@@ -91,6 +92,7 @@
'logfile': None, 'message': "Add the code review.", }
commands.commit(_ui, sandbox, **opts)
+
def teardown_sandbox():
os.chdir(os.path.realpath(os.path.join(sandbox_path, os.pardir)))
shutil.rmtree(sandbox_path)
@@ -111,6 +113,7 @@
def get_ui():
return _ui
+
WRONG_ERROR = '''\
The wrong error was printed.