@@ -38,12 +38,12 @@ def test__sanitize_operation_args(self):
3838 action .client = zeep .Client (wsdl = "./etc/fireflow_wsdl_2018_06_13.xml" )
3939 test_operation = 'createTicket'
4040 test_dict = {'ffws_header' : {"version" : "1.0" , "opaque" : "" },
41- 'session_id' : 'test' ,
42- 'ticket' : "test" }
41+ 'session_id' : 'test' ,
42+ 'ticket' : "test" }
4343
4444 expected_dict = {'FFWSHeader' : {"version" : "1.0" , "opaque" : "" },
45- 'sessionId' : 'test' ,
46- 'ticket' : "test" }
45+ 'sessionId' : 'test' ,
46+ 'ticket' : "test" }
4747 result = action ._sanitize_operation_args (test_operation , test_dict )
4848 self .assertEqual (result , expected_dict )
4949
@@ -181,7 +181,7 @@ def test_build_wsdl_url(self):
181181 connection ['server' ],
182182 connection ['wsdl_endpoint' ]))
183183 wsdl_url = action .build_wsdl_url (connection )
184- self .assertEquals (wsdl_url , expected_url )
184+ self .assertEqual (wsdl_url , expected_url )
185185
186186 def test_build_wsdl_url_port (self ):
187187 action = self .get_action_instance ({})
@@ -195,7 +195,7 @@ def test_build_wsdl_url_port(self):
195195 connection ['port' ],
196196 connection ['wsdl_endpoint' ]))
197197 wsdl_url = action .build_wsdl_url (connection )
198- self .assertEquals (wsdl_url , expected_url )
198+ self .assertEqual (wsdl_url , expected_url )
199199
200200 def test_build_wsdl_url_missing_server (self ):
201201 action = self .get_action_instance ({})
@@ -213,7 +213,7 @@ def test_login(self):
213213 connection_name = 'full'
214214 connection = self .config_good ['algosec' ][connection_name ]
215215 context = {'connection' : connection ,
216- 'kwargs_dict' : kwargs_dict }
216+ 'kwargs_dict' : kwargs_dict }
217217
218218 expected_session = "expected_session"
219219
@@ -230,7 +230,7 @@ def test_login(self):
230230 password = context ['connection' ]['password' ],
231231 domain = None )
232232
233- self .assertEquals (result , expected_session )
233+ self .assertEqual (result , expected_session )
234234
235235 @mock .patch ('lib.run_operation.zeep.Client' )
236236 def test__pre_exec_kwargs (self , mock_client ):
@@ -264,8 +264,8 @@ def test__pre_exec_kwargs(self, mock_client):
264264
265265 result_context , result_client = action ._pre_exec (** kwargs_dict_copy )
266266 mock_client .assert_called_with (wsdl = wsdl_url )
267- self .assertEquals (result_client , mock_client .return_value .service )
268- self .assertEquals (result_context , expected_context )
267+ self .assertEqual (result_client , mock_client .return_value .service )
268+ self .assertEqual (result_context , expected_context )
269269
270270 @mock .patch ('lib.run_operation.zeep.Client' )
271271 def test__pre_exec_config (self , mock_client ):
@@ -297,8 +297,8 @@ def test__pre_exec_config(self, mock_client):
297297
298298 result_context , result_client = action ._pre_exec (** kwargs_dict_copy )
299299 mock_client .assert_called_with (wsdl = wsdl_url )
300- self .assertEquals (result_client , mock_client .return_value .service )
301- self .assertEquals (result_context , expected_context )
300+ self .assertEqual (result_client , mock_client .return_value .service )
301+ self .assertEqual (result_context , expected_context )
302302
303303 @mock .patch ('lib.run_operation.RunOperation._sanitize_operation_args' )
304304 def test__exec_session (self , mock__sanitize_operation_args ):
@@ -330,7 +330,7 @@ def test__exec_session(self, mock__sanitize_operation_args):
330330 self .assertFalse (mock_client .service .Login .called )
331331 mock_client .service .__getitem__ .assert_called_with (context ['operation' ])
332332 mock_operation .assert_called_with (** expected_args )
333- self .assertEquals (result , expected_result )
333+ self .assertEqual (result , expected_result )
334334
335335 @mock .patch ('lib.run_operation.RunOperation._sanitize_operation_args' )
336336 def test__exec_login (self , mock__sanitize_operation_args ):
@@ -367,7 +367,7 @@ def test__exec_login(self, mock__sanitize_operation_args):
367367 domain = None )
368368 mock_client .service .__getitem__ .assert_called_with (context ['operation' ])
369369 mock_operation .assert_called_with (** expected_args )
370- self .assertEquals (result , expected_result )
370+ self .assertEqual (result , expected_result )
371371
372372 def test__exec_login_bad_connection (self ):
373373 action = self .get_action_instance (self .config_blank )
@@ -387,17 +387,17 @@ def test__post_exec(self):
387387 action = self .get_action_instance (self .config_blank )
388388 client = zeep .Client (wsdl = "./etc/fireflow_wsdl_2018_06_13.xml" )
389389 expected = {"customFieldData" : {"name" : "abc123" ,
390- "displayName" : "new_field" ,
391- "type" : None ,
392- "maxValues" : None ,
393- "category" : None ,
394- "defaultValue" : None ,
395- "validation" : None }}
390+ "displayName" : "new_field" ,
391+ "type" : None ,
392+ "maxValues" : None ,
393+ "category" : None ,
394+ "defaultValue" : None ,
395+ "validation" : None }}
396396 type_class = client .get_type ('ns0:customFieldData' )
397397 obj = type_class (name = expected ['customFieldData' ]['name' ],
398- displayName = expected ['customFieldData' ]['displayName' ])
398+ displayName = expected ['customFieldData' ]['displayName' ])
399399 result = action ._post_exec (obj )
400- self .assertEquals (result , expected ['customFieldData' ])
400+ self .assertEqual (result , expected ['customFieldData' ])
401401
402402 @mock .patch ("lib.run_operation.RunOperation._post_exec" )
403403 @mock .patch ("lib.run_operation.RunOperation._exec" )
@@ -420,4 +420,4 @@ def test_run(self, mock__pre_exec, mock__exec, mock__post_exec):
420420 mock__pre_exec .assert_called_with (** kwargs_dict )
421421 mock__exec .assert_called_with (context , client )
422422 mock__post_exec .assert_called_with (exec_result )
423- self .assertEquals (result , post_exec_result )
423+ self .assertEqual (result , post_exec_result )
0 commit comments