diff options
Diffstat (limited to 'becommands')
-rw-r--r-- | becommands/close.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/becommands/close.py b/becommands/close.py index 2344a90..4f50b58 100644 --- a/becommands/close.py +++ b/becommands/close.py @@ -1,6 +1,17 @@ """Close a bug""" from libbe import cmdutil def execute(args): + """ + >>> from libbe import tests + >>> import os + >>> dir = tests.simple_bug_dir() + >>> os.chdir(dir.dir) + >>> dir.get_bug("a").status + 'open' + >>> execute(("a",)) + >>> dir.get_bug("a").status + 'closed' + """ assert(len(args) == 1) bug = cmdutil.get_bug(args[0]) bug.status = "closed" |