def test_simple_update(sh): svn.update("bar") assert sh.called assert sh.call_args[0][0] == "svn up bar" sh.reset() svn.update() assert sh.called assert sh.call_args[0][0] == "svn up "
def test_update_with_revision(sh): svn.update(revision="1234") assert sh.called assert sh.call_args[0][0] == "svn up -r 1234 "