[gedit] tools: assertEqual instead of deprecated assertEquals



commit e03d3beb0da8239d529b2fe62f0ab844cb0ab313
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Apr 1 21:41:49 2013 +0200

    tools: assertEqual instead of deprecated assertEquals

 plugins/externaltools/tools/linkparsing_test.py |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plugins/externaltools/tools/linkparsing_test.py b/plugins/externaltools/tools/linkparsing_test.py
index 0135b95..544b282 100644
--- a/plugins/externaltools/tools/linkparsing_test.py
+++ b/plugins/externaltools/tools/linkparsing_test.py
@@ -25,15 +25,15 @@ class LinkParserTest(unittest.TestCase):
         self.p = LinkParser()
 
     def assert_link_count(self, links, expected_count):
-        self.assertEquals(len(links), expected_count, 'incorrect nr of links')
+        self.assertEqual(len(links), expected_count, 'incorrect nr of links')
 
     def assert_link(self, actual, path, line_nr, col_nr=0):
-        self.assertEquals(actual.path, path, "incorrect path")
-        self.assertEquals(actual.line_nr, line_nr, "incorrect line nr")
-        self.assertEquals(actual.col_nr, col_nr, "incorrect col nr")
+        self.assertEqual(actual.path, path, "incorrect path")
+        self.assertEqual(actual.line_nr, line_nr, "incorrect line nr")
+        self.assertEqual(actual.col_nr, col_nr, "incorrect col nr")
 
     def assert_link_text(self, text, link, link_text):
-        self.assertEquals(text[link.start:link.end], link_text,
+        self.assertEqual(text[link.start:link.end], link_text,
            "the expected link text does not match the text within the string")
 
     def test_parse_gcc_simple_test_with_real_output(self):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]