# HG changeset patch # User Steve Losh # Date 1279837589 14400 # Node ID 6cd2b2e4286a3fe12dd8580e23ae12985b035517 # Parent 2f55173bca522cf2b558bfdf48f0f67ad56e4d66 tests: whitespace diff -r 2f55173bca52 -r 6cd2b2e4286a review/tests/util.py --- 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.