2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 14:25:52 +00:00

Replace deprecated assertEquals with assertEqual

assertEquals is deprecated since Python 2.7 and 3.2.
This commit is contained in:
Christian Boltz
2019-02-26 21:27:00 +01:00
parent 2ed3763a2f
commit 62abfe38e8
3 changed files with 16 additions and 16 deletions

View File

@@ -1674,7 +1674,7 @@ POLICYGROUPS_DIR="%s/templates"
# verify we get the same manifest back
man_new = easyp.gen_manifest(params)
self.assertEquals(m, man_new)
self.assertEqual(m, man_new)
def test_gen_manifest_ubuntu(self):
'''Test gen_manifest (ubuntu)'''
@@ -1714,7 +1714,7 @@ POLICYGROUPS_DIR="%s/templates"
# verify we get the same manifest back
man_new = easyp.gen_manifest(params)
self.assertEquals(m, man_new)
self.assertEqual(m, man_new)
def test_parse_manifest_no_version(self):
'''Test parse_manifest (vendor with no version)'''