From: Aaron Bentley Date: Thu, 24 Mar 2005 16:47:09 +0000 (+0000) Subject: Added tests for set X-Git-Tag: 1.0.0~306 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d880061645223bb36f9591cb0274f5e47a4b5501;p=be.git Added tests for set --- diff --git a/becommands/set.py b/becommands/set.py index 875ca86..a99fc19 100644 --- a/becommands/set.py +++ b/becommands/set.py @@ -1,6 +1,21 @@ """Change tree settings""" from libbe import cmdutil def execute(args): + """ + >>> from libbe import tests + >>> import os + >>> dir = tests.simple_bug_dir() + >>> os.chdir(dir.dir) + >>> execute(("a",)) + None + >>> execute(("a", "tomorrow")) + >>> execute(("a",)) + tomorrow + >>> execute(("a", "none")) + >>> execute(("a",)) + None + >>> tests.clean_up() + """ if len(args) > 2: raise cmdutil.UserError("Too many arguments.") tree = cmdutil.bug_tree()