aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/set.py
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-03-24 16:47:09 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-03-24 16:47:09 +0000
commitd880061645223bb36f9591cb0274f5e47a4b5501 (patch)
treeafd7a2990b14a1255563d89521f10d8f863402d0 /becommands/set.py
parent176b068f77a58d5fa4bfbec2721c6774eb4512b1 (diff)
downloadbugseverywhere-d880061645223bb36f9591cb0274f5e47a4b5501.tar.gz
Added tests for set
Diffstat (limited to 'becommands/set.py')
-rw-r--r--becommands/set.py15
1 files changed, 15 insertions, 0 deletions
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()