diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-03-24 15:57:32 +0000 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-03-24 15:57:32 +0000 |
commit | 57d6ed2b544a1663657a9fcf29f5f089120e870e (patch) | |
tree | 74d21b4eb344f5f533fede1a137663dd28e40b49 /becommands | |
parent | 9d0e5329c84d5cbb026b87bf6aba6050832b184e (diff) | |
download | bugseverywhere-57d6ed2b544a1663657a9fcf29f5f089120e870e.tar.gz |
Added tests for severity
Diffstat (limited to 'becommands')
-rw-r--r-- | becommands/severity.py | 15 |
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() |