[GRASS-SVN] r68355 - grass/trunk/lib/python/gunittest/testsuite
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon May 2 09:07:43 PDT 2016
Author: zarch
Date: 2016-05-02 09:07:43 -0700 (Mon, 02 May 2016)
New Revision: 68355
Modified:
grass/trunk/lib/python/gunittest/testsuite/test_checkers.py
Log:
guinittest: fix deprecated self.assertEquals with self.assertEqual
Modified: grass/trunk/lib/python/gunittest/testsuite/test_checkers.py
===================================================================
--- grass/trunk/lib/python/gunittest/testsuite/test_checkers.py 2016-05-02 16:07:37 UTC (rev 68354)
+++ grass/trunk/lib/python/gunittest/testsuite/test_checkers.py 2016-05-02 16:07:43 UTC (rev 68355)
@@ -371,27 +371,27 @@
def test_text_file_binary(self):
r"""File with ``\n`` (LF) newlines as binary (MD5 has ``\n``)."""
- self.assertEquals(file_md5(self.correct_file_name_unix_nl),
- self.correct_md5sum,
- msg="MD5 sums different")
+ self.assertEqual(file_md5(self.correct_file_name_unix_nl),
+ self.correct_md5sum,
+ msg="MD5 sums different")
def test_text_file_platfrom(self):
r"""Text file with platform dependent newlines"""
- self.assertEquals(text_file_md5(self.correct_file_name_platform_nl),
- self.correct_md5sum,
- msg="MD5 sums different")
+ self.assertEqual(text_file_md5(self.correct_file_name_platform_nl),
+ self.correct_md5sum,
+ msg="MD5 sums different")
def test_text_file_unix(self):
r"""Text file with ``\n`` (LF) newlines"""
- self.assertEquals(text_file_md5(self.correct_file_name_unix_nl),
- self.correct_md5sum,
- msg="MD5 sums different")
+ self.assertEqual(text_file_md5(self.correct_file_name_unix_nl),
+ self.correct_md5sum,
+ msg="MD5 sums different")
def test_text_file_different(self):
r"""Text file with ``\n`` (LF) newlines"""
- self.assertNotEquals(text_file_md5(self.wrong_file_name),
- self.correct_md5sum,
- msg="MD5 sums must be different")
+ self.assertNotEqual(text_file_md5(self.wrong_file_name),
+ self.correct_md5sum,
+ msg="MD5 sums must be different")
if __name__ == '__main__':
More information about the grass-commit
mailing list