aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/close.py
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-03-24 15:40:30 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-03-24 15:40:30 +0000
commit8415269dba471080ee732ec309ed73529847fbc1 (patch)
treecd5d142242e5fa58b09714f35d0071d2b8358973 /becommands/close.py
parenta361d20bdcf4ad3a48414faaeed063eb86e52307 (diff)
downloadbugseverywhere-8415269dba471080ee732ec309ed73529847fbc1.tar.gz
Implemented tests for 'open'
Diffstat (limited to 'becommands/close.py')
-rw-r--r--becommands/close.py11
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"