Fixed tests to use lists, so that optparse can mangle them
authorAaron Bentley <aaron.bentley@utoronto.ca>
Tue, 4 Apr 2006 23:52:25 +0000 (19:52 -0400)
committerAaron Bentley <aaron.bentley@utoronto.ca>
Tue, 4 Apr 2006 23:52:25 +0000 (19:52 -0400)
becommands/assign.py
becommands/close.py
becommands/inprogress.py
becommands/open.py
becommands/set.py
becommands/severity.py
becommands/target.py

index 2308a12669a778b9121a7714e2f0f5165ae7f5b1..d7c2fcad070a8dc601ecac26d2151af0bb8245b0 100644 (file)
@@ -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()
index 3ced7ebd31ffbf17395833f00827eaa371a96e83..2b2805535a75eda4037d19f921cdf56361fbc2a6 100644 (file)
@@ -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()
index 10d5cbd716a58f98e519f208c233dcf9397be2eb..005bdbcc0705a9ea77cc3388d682f53b511f382d 100644 (file)
@@ -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()
index 89067f81c4d7af14ce8412bc7dbe2c413849be39..d93eb61c3233af7e848ce169e591623ab309d915 100644 (file)
@@ -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()
index 6f40b5f13d2a6c75cdc1649e34c0225488d1fcd7..a93cbf31cb820925c6f7794bf8b86f004cbefbc9 100644 (file)
@@ -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()
     """
index 82ef7ca709139fb763ee4b3c976a808e983ed513..92c83fc6b1d2e7569c9c1a7a6a7759ce1d40f022 100644 (file)
@@ -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()
index 665efadb476bbc3c08a5861650ba4cc116d91fa1..f872abb3a91fda7972cb116468a50bff59a2f04d 100644 (file)
@@ -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()
     """