aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/open.py
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-03-24 15:43:32 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-03-24 15:43:32 +0000
commit5f36f36f76f11730194571e90f03caf87b814300 (patch)
tree7be1aef0ba290ad88cfb910f7a7c631796aed217 /becommands/open.py
parent8415269dba471080ee732ec309ed73529847fbc1 (diff)
downloadbugseverywhere-5f36f36f76f11730194571e90f03caf87b814300.tar.gz
Copied test to close command
Diffstat (limited to 'becommands/open.py')
-rw-r--r--becommands/open.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/becommands/open.py b/becommands/open.py
index dd50f93..82d739b 100644
--- a/becommands/open.py
+++ b/becommands/open.py
@@ -1,6 +1,18 @@
"""Re-open 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("b").status
+ 'closed'
+ >>> execute(("b",))
+ >>> dir.get_bug("b").status
+ 'open'
+ >>> tests.clean_up()
+ """
assert(len(args) == 1)
bug = cmdutil.get_bug(args[0])
bug.status = "open"