Skip to content

Commit 52e29b9

Browse files
committedNov 12, 2016
[processing] fix deprecation warnings in GDAL test
1 parent 23de13c commit 52e29b9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

‎python/plugins/processing/tests/GdalAlgorithmsTest.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,31 +74,31 @@ def test_getConnectionString(self):
7474
cs = obj.getConnectionString()
7575
# NOTE: defaults are debatable, see
7676
# https://github.com/qgis/QGIS/pull/3607#issuecomment-253971020
77-
self.assertEquals(obj.getConnectionString(),
77+
self.assertEqual(obj.getConnectionString(),
7878
"host=localhost port=5432 active_schema=public")
7979

8080
obj.setParameterValue('HOST', 'remote')
81-
self.assertEquals(obj.getConnectionString(),
81+
self.assertEqual(obj.getConnectionString(),
8282
"host=remote port=5432 active_schema=public")
8383

8484
obj.setParameterValue('HOST', '')
85-
self.assertEquals(obj.getConnectionString(),
85+
self.assertEqual(obj.getConnectionString(),
8686
"port=5432 active_schema=public")
8787

8888
obj.setParameterValue('PORT', '5555')
89-
self.assertEquals(obj.getConnectionString(),
89+
self.assertEqual(obj.getConnectionString(),
9090
"port=5555 active_schema=public")
9191

9292
obj.setParameterValue('PORT', '')
93-
self.assertEquals(obj.getConnectionString(),
93+
self.assertEqual(obj.getConnectionString(),
9494
"active_schema=public")
9595

9696
obj.setParameterValue('USER', 'usr')
97-
self.assertEquals(obj.getConnectionString(),
97+
self.assertEqual(obj.getConnectionString(),
9898
"active_schema=public user=usr")
9999

100100
obj.setParameterValue('PASSWORD', 'pwd')
101-
self.assertEquals(obj.getConnectionString(),
101+
self.assertEqual(obj.getConnectionString(),
102102
"password=pwd active_schema=public user=usr")
103103

104104

0 commit comments

Comments
 (0)
Please sign in to comment.