1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-19 12:23:49 +03:00

python:tests: Use assertEqual() instead of assertEquals()

assertEquals() was removed in Python 3.12.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton
2023-10-02 13:34:05 +13:00
committed by Andrew Bartlett
parent 08dbb35e7e
commit 2fa838d439
3 changed files with 14 additions and 14 deletions

View File

@@ -1805,8 +1805,8 @@ class GpoCmdTestCase(SambaToolCmdTest):
self.assertIn('UserPolicy : False', out,
'The test cse should not have User policy enabled')
cse_ext = re.findall(r'^UniqueGUID\s+:\s+(.*)', out)
self.assertEquals(len(cse_ext), 1,
'The test cse GUID was not found')
self.assertEqual(len(cse_ext), 1,
'The test cse GUID was not found')
cse_ext = cse_ext[0]
self.assertTrue(check_guid(cse_ext),
'The test cse GUID was not formatted correctly')