aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-03-24 15:57:32 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-03-24 15:57:32 +0000
commit57d6ed2b544a1663657a9fcf29f5f089120e870e (patch)
tree74d21b4eb344f5f533fede1a137663dd28e40b49 /becommands
parent9d0e5329c84d5cbb026b87bf6aba6050832b184e (diff)
downloadbugseverywhere-57d6ed2b544a1663657a9fcf29f5f089120e870e.tar.gz
Added tests for severity
Diffstat (limited to 'becommands')
-rw-r--r--becommands/severity.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/becommands/severity.py b/becommands/severity.py
index 0b35c50..6c35a26 100644
--- a/becommands/severity.py
+++ b/becommands/severity.py
@@ -4,6 +4,21 @@ from libbe import cmdutil
__desc__ = __doc__
def execute(args):
+ """
+ >>> from libbe import tests
+ >>> import os
+ >>> dir = tests.simple_bug_dir()
+ >>> os.chdir(dir.dir)
+ >>> execute(("a",))
+ minor
+ >>> execute(("a", "wishlist"))
+ >>> execute(("a",))
+ wishlist
+ >>> execute(("a", "none"))
+ Traceback (most recent call last):
+ UserError: Invalid severity level: none
+ >>> tests.clean_up()
+ """
assert(len(args) in (0, 1, 2))
if len(args) == 0:
print help()