浏览代码

Merge pull request #7510 from hartwork/issue-7501-stop-using-deprecated-assertequal

tests: Stop using deprecated assertEquals (fixes #7501)
Anca Iordache 5 年之前
父节点
当前提交
a2095a2a0c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tests/unit/config/config_test.py

+ 2 - 2
tests/unit/config/config_test.py

@@ -3231,12 +3231,12 @@ web:
 
         with self.assertRaises(ConfigurationError) as e:
             config.load(config1)
-        self.assertEquals(str(e.exception), 'Duplicate mount points: [%s]' % (
+        self.assertEqual(str(e.exception), 'Duplicate mount points: [%s]' % (
             ', '.join(['/tmp/foo:/tmp/foo:rw']*2)))
 
         with self.assertRaises(ConfigurationError) as e:
             config.load(config2)
-        self.assertEquals(str(e.exception), 'Duplicate mount points: [%s]' % (
+        self.assertEqual(str(e.exception), 'Duplicate mount points: [%s]' % (
             ', '.join(['/x:/y:rw', '/z:/y:rw'])))