From: Marien Zwart Date: Wed, 5 Apr 2006 00:19:17 +0000 (+0200) Subject: unbreak some tests. X-Git-Tag: 1.0.0~199^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6691e2276112b3aad603a7b14ff80b53f77e03e3;p=be.git unbreak some tests. --- diff --git a/becommands/assign.py b/becommands/assign.py index 2308a12..38ece52 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..7e5ac1c 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..9e396de 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..e51bf79 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..e359df1 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..af99bf7 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..4b015b4 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() """