aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
authorAaron Bentley <aaron.bentley@utoronto.ca>2005-03-24 06:44:47 +0000
committerAaron Bentley <aaron.bentley@utoronto.ca>2005-03-24 06:44:47 +0000
commit6decc39bc7314cf0596ea682bf17677b68888a5a (patch)
tree69275d869930b35e7e1647a24202c9006539740c /becommands
parent37157407c121ca6cdfb4beb726adb49303bf929e (diff)
downloadbugseverywhere-6decc39bc7314cf0596ea682bf17677b68888a5a.tar.gz
started work on test case for "new"
Diffstat (limited to 'becommands')
-rw-r--r--becommands/new.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/becommands/new.py b/becommands/new.py
index afa6494..01acf96 100644
--- a/becommands/new.py
+++ b/becommands/new.py
@@ -1,6 +1,15 @@
"""Create a new bug"""
-from libbe import bugdir, cmdutil, names, utility
+from libbe import bugdir, cmdutil, names, utility, tests
def execute(args):
+ """
+ >>> import os
+ >>> dir = tests.bug_arch_dir()
+ >>> os.chdir(dir.dir)
+ >>> names.uuid = lambda: "a"
+ >>> execute (("this is a test",))
+ Created bug with ID a
+ >>> tests.clean_up()
+ """
if len(args) != 1:
raise cmdutil.UserError("Please supply a summary message")
dir = cmdutil.bug_tree()