summaryrefslogtreecommitdiffstats
path: root/tests/test_option.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2007-11-06 08:35:48 +0000
committerJohan Dahlin <johan@src.gnome.org>2007-11-06 08:35:48 +0000
commit3ef20240775f38fa40cdac5eca010b6d46bc673b (patch)
treeed1d8dd27eee1ea060d8e5bee178e151a736d09f /tests/test_option.py
parentc7d3929c2562cfc86b7164fa2dd24c0cd140f3b8 (diff)
downloadpygobject-3ef20240775f38fa40cdac5eca010b6d46bc673b.tar.gz
pygobject-3ef20240775f38fa40cdac5eca010b6d46bc673b.tar.xz
pygobject-3ef20240775f38fa40cdac5eca010b6d46bc673b.zip
Remove trailing whitespace
svn path=/trunk/; revision=715
Diffstat (limited to 'tests/test_option.py')
-rw-r--r--tests/test_option.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_option.py b/tests/test_option.py
index 3996659..1feb13e 100644
--- a/tests/test_option.py
+++ b/tests/test_option.py
@@ -13,7 +13,7 @@ class TestOption(unittest.TestCase):
def setup_group(self):
def option_callback(option, opt, value, parser):
raise StandardError(self.EXCEPTION_MESSAGE)
-
+
group = option.OptionGroup(
"unittest", "Unit test options", "Show all unittest options",
option_list = [
@@ -31,15 +31,15 @@ class TestOption(unittest.TestCase):
dest="test_integer",
help="Unit integer option"),
])
- group.add_option("-t", "--test",
- action="store_false",
- dest="test",
+ group.add_option("-t", "--test",
+ action="store_false",
+ dest="test",
default=True,
help="Unit test option")
return group
def setup_parser(self):
- parser = option.OptionParser("NAMES...",
+ parser = option.OptionParser("NAMES...",
description="Option unit test")
parser.add_option("-t", "--test", help="Unit test option",
action="store_false", dest="test", default=True)
@@ -54,7 +54,7 @@ class TestOption(unittest.TestCase):
assert group.values.test
assert not parser.values.test
assert group.values.unit_file == "test"
-
+
try:
parser.parse_args(["test_option.py", "--test-integer=text"])
except option.OptionValueError:
@@ -69,7 +69,7 @@ class TestOption(unittest.TestCase):
parser.parse_args(["test_option.py", "--callback-failure-test"])
finally:
sys.stderr = old_stderr
- assert (sio.getvalue().split('\n')[-2] ==
+ assert (sio.getvalue().split('\n')[-2] ==
"StandardError: " + self.EXCEPTION_MESSAGE)
try: