diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-03-24 15:40:30 +0000 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-03-24 15:40:30 +0000 |
commit | 8415269dba471080ee732ec309ed73529847fbc1 (patch) | |
tree | cd5d142242e5fa58b09714f35d0071d2b8358973 /becommands/close.py | |
parent | a361d20bdcf4ad3a48414faaeed063eb86e52307 (diff) | |
download | bugseverywhere-8415269dba471080ee732ec309ed73529847fbc1.tar.gz |
Implemented tests for 'open'
Diffstat (limited to 'becommands/close.py')
-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" |