diff options
author | Martin Pitt <martinpitt@gnome.org> | 2012-10-24 08:05:43 +0200 |
---|---|---|
committer | Martin Pitt <martinpitt@gnome.org> | 2012-10-24 08:05:43 +0200 |
commit | d0a0332feb7946f4bb6b43211d6fe3ae67e7dba5 (patch) | |
tree | cb292d036389302b9385e7f7cc5ce68b1cc2e38f /tests/test_option.py | |
parent | 4b460e2eb18b8340fe99252063fdb08b0c222968 (diff) | |
download | pygobject-d0a0332feb7946f4bb6b43211d6fe3ae67e7dba5.tar.gz |
tests: consitent naming style
Stop mixing camel case and underline naming, use the latter consistently
in all tests.
Diffstat (limited to 'tests/test_option.py')
-rw-r--r-- | tests/test_option.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_option.py b/tests/test_option.py index 345d0ad6..88a571ff 100644 --- a/tests/test_option.py +++ b/tests/test_option.py @@ -57,7 +57,7 @@ class TestOption(unittest.TestCase): self.parser.add_option_group(group) return group - def testParseArgs(self): + def test_parse_args(self): options, args = self.parser.parse_args( ["test_option.py"]) self.assertFalse(args) @@ -70,12 +70,12 @@ class TestOption(unittest.TestCase): ["test_option.py", "foo", "bar"]) self.assertEqual(args, []) - def testParseArgsDoubleDash(self): + def test_parse_args_double_dash(self): options, args = self.parser.parse_args( ["test_option.py", "--", "-xxx"]) #self.assertEqual(args, ["-xxx"]) - def testParseArgsGroup(self): + def test_parse_args_group(self): group = self._create_group() options, args = self.parser.parse_args( @@ -89,20 +89,20 @@ class TestOption(unittest.TestCase): self.assertEqual(group.values.unit_file, "test") self.assertFalse(args) - def testOptionValueError(self): + def test_option_value_error(self): self._create_group() self.assertRaises(OptionValueError, self.parser.parse_args, ["test_option.py", "--test-integer=text"]) - def testBadOptionError(self): + def test_bad_option_error(self): self.assertRaises(BadOptionError, self.parser.parse_args, ["test_option.py", "--unknwon-option"]) - def testOptionGroupConstructor(self): + def test_option_group_constructor(self): self.assertRaises(TypeError, OptionGroup) - def testStandardError(self): + def test_standard_error(self): self._create_group() sio = StringIO() old_stderr = sys.stderr |