summaryrefslogtreecommitdiff
path: root/tests/test_option.py
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:46:44 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:46:48 +0900
commit6db7944f8363094c12cbd3fe2daf8a887fda86b2 (patch)
tree04471661319da32fb9915d94ba75adcd125bdc22 /tests/test_option.py
parentd71148e4448b78edde9dd063d65c00a13ed27cef (diff)
downloadpygobject2-6db7944f8363094c12cbd3fe2daf8a887fda86b2.tar.gz
pygobject2-6db7944f8363094c12cbd3fe2daf8a887fda86b2.tar.bz2
pygobject2-6db7944f8363094c12cbd3fe2daf8a887fda86b2.zip
Imported Upstream version 3.3.3.1
Change-Id: I57c64216ccaba663cfb48f7e060e4e8bb0961964 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'tests/test_option.py')
-rw-r--r--tests/test_option.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/test_option.py b/tests/test_option.py
index 7f63173..345d0ad 100644
--- a/tests/test_option.py
+++ b/tests/test_option.py
@@ -12,7 +12,7 @@ except ImportError:
# FIXME: we need a way to import the options module from a public module
from gi._glib.option import OptionParser, OptionGroup, OptionValueError, \
- make_option, BadOptionError
+ make_option, BadOptionError
class TestOption(unittest.TestCase):
@@ -20,9 +20,9 @@ class TestOption(unittest.TestCase):
def setUp(self):
self.parser = OptionParser("NAMES...",
- description="Option unit test")
+ description="Option unit test")
self.parser.add_option("-t", "--test", help="Unit test option",
- action="store_false", dest="test", default=True)
+ action="store_false", dest="test", default=True)
self.parser.add_option("--g-fatal-warnings",
action="store_true",
dest="fatal_warnings",
@@ -36,18 +36,18 @@ class TestOption(unittest.TestCase):
"unittest", "Unit test options", "Show all unittest options",
option_list=[
make_option("-f", "-u", "--file", "--unit-file",
- type="filename",
- dest="unit_file",
- help="Unit test option"),
+ type="filename",
+ dest="unit_file",
+ help="Unit test option"),
make_option("--test-integer",
- type="int",
- dest="test_integer",
- help="Unit integer option"),
+ type="int",
+ dest="test_integer",
+ help="Unit integer option"),
make_option("--callback-failure-test",
- action="callback",
- callback=option_callback,
- dest="test_integer",
- help="Unit integer option"),
+ action="callback",
+ callback=option_callback,
+ dest="test_integer",
+ help="Unit integer option"),
])
group.add_option("-t", "--test",
action="store_false",