Do not use deprecated assertion functions

This commit is contained in:
Joona Hoikkala
2019-03-19 01:07:54 +02:00
parent e7ae0e23cb
commit 0d79f262c4
@@ -150,7 +150,7 @@ class CentOS6Tests(util.ApacheTest):
self.config.save()
pre_loadmods = self.config.parser.find_dir(
"LoadModule", "ssl_module", start=self.vh_truth[1].path, exclude=False)
self.assertEquals(len(pre_loadmods), 2)
self.assertEqual(len(pre_loadmods), 2)
# The ssl.conf now has two LoadModule directives, one inside of
# !mod_ssl.c IfModule
self.config.assoc["test.example.com"] = self.vh_truth[0]
@@ -161,7 +161,7 @@ class CentOS6Tests(util.ApacheTest):
# Ensure that the additional LoadModule wasn't written into the IfModule
post_loadmods = self.config.parser.find_dir(
"LoadModule", "ssl_module", start=self.vh_truth[1].path, exclude=False)
self.assertEquals(len(post_loadmods), 1)
self.assertEqual(len(post_loadmods), 1)