diff options
author | Aaron Bentley <aaron.bentley@utoronto.ca> | 2006-04-04 19:52:25 -0400 |
---|---|---|
committer | Aaron Bentley <aaron.bentley@utoronto.ca> | 2006-04-04 19:52:25 -0400 |
commit | 5d75c1f4b7362ef184276f781346e69c34bd4874 (patch) | |
tree | 4d9444c748d0f7520481b23216a92723bcba12ce /becommands | |
parent | 2225a378d84f77c3512ee407af1aeb355b463084 (diff) | |
download | bugseverywhere-5d75c1f4b7362ef184276f781346e69c34bd4874.tar.gz |
Fixed tests to use lists, so that optparse can mangle them
Diffstat (limited to 'becommands')
-rw-r--r-- | becommands/assign.py | 6 | ||||
-rw-r--r-- | becommands/close.py | 2 | ||||
-rw-r--r-- | becommands/inprogress.py | 2 | ||||
-rw-r--r-- | becommands/open.py | 2 | ||||
-rw-r--r-- | becommands/set.py | 10 | ||||
-rw-r--r-- | becommands/severity.py | 8 | ||||
-rw-r--r-- | becommands/target.py | 10 |
7 files changed, 20 insertions, 20 deletions
diff --git a/becommands/assign.py b/becommands/assign.py index 2308a12..d7c2fca 100644 --- a/becommands/assign.py +++ b/becommands/assign.py @@ -26,13 +26,13 @@ def execute(args): >>> os.chdir(dir.dir) >>> dir.get_bug("a").assigned is None True - >>> execute(("a",)) + >>> execute(["a",]) >>> dir.get_bug("a").assigned == names.creator() True - >>> execute(("a", "someone")) + >>> execute(["a", "someone"]) >>> dir.get_bug("a").assigned u'someone' - >>> execute(("a","none")) + >>> execute(["a","none"]) >>> dir.get_bug("a").assigned is None True >>> tests.clean_up() diff --git a/becommands/close.py b/becommands/close.py index 3ced7eb..2b28055 100644 --- a/becommands/close.py +++ b/becommands/close.py @@ -24,7 +24,7 @@ def execute(args): >>> os.chdir(dir.dir) >>> dir.get_bug("a").status u'open' - >>> execute(("a",)) + >>> execute(["a",]) >>> dir.get_bug("a").status u'closed' >>> tests.clean_up() diff --git a/becommands/inprogress.py b/becommands/inprogress.py index 10d5cbd..005bdbc 100644 --- a/becommands/inprogress.py +++ b/becommands/inprogress.py @@ -24,7 +24,7 @@ def execute(args): >>> os.chdir(dir.dir) >>> dir.get_bug("a").status u'open' - >>> execute(("a",)) + >>> execute(["a",]) >>> dir.get_bug("a").status u'in-progress' >>> tests.clean_up() diff --git a/becommands/open.py b/becommands/open.py index 89067f8..d93eb61 100644 --- a/becommands/open.py +++ b/becommands/open.py @@ -24,7 +24,7 @@ def execute(args): >>> os.chdir(dir.dir) >>> dir.get_bug("b").status u'closed' - >>> execute(("b",)) + >>> execute(["b",]) >>> dir.get_bug("b").status u'open' >>> tests.clean_up() diff --git a/becommands/set.py b/becommands/set.py index 6f40b5f..a93cbf3 100644 --- a/becommands/set.py +++ b/becommands/set.py @@ -22,13 +22,13 @@ def execute(args): >>> import os >>> dir = tests.simple_bug_dir() >>> os.chdir(dir.dir) - >>> execute(("a",)) + >>> execute(["a",]) None - >>> execute(("a", "tomorrow")) - >>> execute(("a",)) + >>> execute(["a", "tomorrow"]) + >>> execute(["a",]) tomorrow - >>> execute(("a", "none")) - >>> execute(("a",)) + >>> execute(["a", "none"]) + >>> execute(["a",]) None >>> tests.clean_up() """ diff --git a/becommands/severity.py b/becommands/severity.py index 82ef7ca..92c83fc 100644 --- a/becommands/severity.py +++ b/becommands/severity.py @@ -25,12 +25,12 @@ def execute(args): >>> import os >>> dir = tests.simple_bug_dir() >>> os.chdir(dir.dir) - >>> execute(("a",)) + >>> execute(["a",]) minor - >>> execute(("a", "wishlist")) - >>> execute(("a",)) + >>> execute(["a", "wishlist"]) + >>> execute(["a",]) wishlist - >>> execute(("a", "none")) + >>> execute(["a", "none"]) Traceback (most recent call last): UserError: Invalid severity level: none >>> tests.clean_up() diff --git a/becommands/target.py b/becommands/target.py index 665efad..f872abb 100644 --- a/becommands/target.py +++ b/becommands/target.py @@ -25,13 +25,13 @@ def execute(args): >>> import os >>> dir = tests.simple_bug_dir() >>> os.chdir(dir.dir) - >>> execute(("a",)) + >>> execute(["a",]) No target assigned. - >>> execute(("a", "tomorrow")) - >>> execute(("a",)) + >>> execute(["a", "tomorrow"]) + >>> execute(["a",]) tomorrow - >>> execute(("a", "none")) - >>> execute(("a",)) + >>> execute(["a", "none"]) + >>> execute(["a",]) No target assigned. >>> tests.clean_up() """ |