From 8415269dba471080ee732ec309ed73529847fbc1 Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Thu, 24 Mar 2005 15:40:30 +0000 Subject: Implemented tests for 'open' --- becommands/close.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'becommands/close.py') 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" -- cgit