projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
176b068
)
Added tests for set
author
Aaron Bentley
<abentley@panoramicfeedback.com>
Thu, 24 Mar 2005 16:47:09 +0000
(16:47 +0000)
committer
Aaron Bentley
<abentley@panoramicfeedback.com>
Thu, 24 Mar 2005 16:47:09 +0000
(16:47 +0000)
becommands/set.py
patch
|
blob
|
history
diff --git
a/becommands/set.py
b/becommands/set.py
index 875ca86140ae91c5c5936b8d7e1d62adf89965db..a99fc199637f2a989d8e86b6bf14002177f937ef 100644
(file)
--- 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()