From d880061645223bb36f9591cb0274f5e47a4b5501 Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Thu, 24 Mar 2005 16:47:09 +0000 Subject: [PATCH] Added tests for set --- becommands/set.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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() -- 2.26.2