diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2012-03-22 10:32:43 +0100 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2012-03-22 10:32:43 +0100 |
commit | c375e3136f0f48eb8a6717c0053155db088b329d (patch) | |
tree | 152a9d09e7749cef5b8779dc59b7e4d7341e0d73 /tests/test_option.py | |
parent | 32525e565cc48454cdacbc44ad3fd751b81cb7e3 (diff) | |
download | pygobject-c375e3136f0f48eb8a6717c0053155db088b329d.tar.gz |
tests: Replace deprecated Python API
failIf → assertFalse, failUnless → assertTrue
Caught by the previous commit of making deprecations fatal.
Diffstat (limited to 'tests/test_option.py')
-rw-r--r-- | tests/test_option.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_option.py b/tests/test_option.py index 55f651d2..2f7e7038 100644 --- a/tests/test_option.py +++ b/tests/test_option.py @@ -59,7 +59,7 @@ class TestOption(unittest.TestCase): def testParseArgs(self): options, args = self.parser.parse_args( ["test_option.py"]) - self.failIf(args) + self.assertFalse(args) options, args = self.parser.parse_args( ["test_option.py", "foo"]) @@ -80,13 +80,13 @@ class TestOption(unittest.TestCase): options, args = self.parser.parse_args( ["test_option.py", "--test", "-f", "test"]) - self.failIf(options.test) + self.assertFalse(options.test) self.assertEqual(options.unit_file, "test") - self.failUnless(group.values.test) - self.failIf(self.parser.values.test) + self.assertTrue(group.values.test) + self.assertFalse(self.parser.values.test) self.assertEqual(group.values.unit_file, "test") - self.failIf(args) + self.assertFalse(args) def testOptionValueError(self): self._create_group() |