diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2016-12-19 12:42:05 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2016-12-19 11:56:00 +0000 |
commit | b668a4cc3c0d268b279083e878e32e1906c0bb2d (patch) | |
tree | 678174ba6512d7169e3c523b3f3d848c13b783a9 /tests/samplebinding/static_nonstatic_methods_test.py | |
parent | 3142c78d4fbb50016b423279e127acf65dfc2c8c (diff) |
Tests: Fix deprecation warnings
Replace assert_() by assertTrue() and assertEquals()
by assertEqual() to fix repeated warnings:
DeprecationWarning: Please use assertTrue instead.
DeprecationWarning: Please use assertEqual instead.
Task-number: PYSIDE-431
Change-Id: I97a65bc1445e5ae497e0b34d529da6ebbb67ee7e
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'tests/samplebinding/static_nonstatic_methods_test.py')
-rw-r--r-- | tests/samplebinding/static_nonstatic_methods_test.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/samplebinding/static_nonstatic_methods_test.py b/tests/samplebinding/static_nonstatic_methods_test.py index a8d0668cb..6451c4440 100644 --- a/tests/samplebinding/static_nonstatic_methods_test.py +++ b/tests/samplebinding/static_nonstatic_methods_test.py @@ -73,13 +73,13 @@ class StaticNonStaticMethodsTest(unittest.TestCase): def testCallingStaticMethodWithClass(self): '''Call static method using class.''' - self.assert_(SimpleFile.exists(self.existing_filename)) + self.assertTrue(SimpleFile.exists(self.existing_filename)) self.assertFalse(SimpleFile.exists(self.non_existing_filename)) def testCallingStaticMethodWithInstance(self): '''Call static method using instance of class.''' f = SimpleFile(self.non_existing_filename) - self.assert_(f.exists(self.existing_filename)) + self.assertTrue(f.exists(self.existing_filename)) self.assertFalse(f.exists(self.non_existing_filename)) def testCallingInstanceMethod(self): @@ -87,7 +87,7 @@ class StaticNonStaticMethodsTest(unittest.TestCase): f1 = SimpleFile(self.non_existing_filename) self.assertFalse(f1.exists()) f2 = SimpleFile(self.existing_filename) - self.assert_(f2.exists()) + self.assertTrue(f2.exists()) def testOverridingStaticNonStaticMethod(self): f = SimpleFile2(self.existing_filename) |