From f45a2e8bba835495b2d2fc0677b656c786dffa53 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Fri, 18 May 2012 09:40:36 +0200 Subject: [PATCH] Replace deprecated unit test methods. --- plone/app/discussion/tests/test_catalog.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plone/app/discussion/tests/test_catalog.py b/plone/app/discussion/tests/test_catalog.py index 9e3f113..dd117c4 100644 --- a/plone/app/discussion/tests/test_catalog.py +++ b/plone/app/discussion/tests/test_catalog.py @@ -319,7 +319,7 @@ class CommentCatalogTest(unittest.TestCase): portal_type="Discussion Item", path={'query': '/'.join(self.portal.folder1.getPhysicalPath())} )) - self.assertEquals(len(brains), 0) + self.assertEqual(len(brains), 0) brains = self.catalog.searchResults(dict( portal_type="Discussion Item", @@ -327,8 +327,8 @@ class CommentCatalogTest(unittest.TestCase): 'query': '/'.join(self.portal.folder2.getPhysicalPath()) } )) - self.assertEquals(len(brains), 1) - self.assertEquals(brains[0].getPath(), + self.assertEqual(len(brains), 1) + self.assertEqual(brains[0].getPath(), '/plone/folder2/moveme/++conversation++default/' + str(comment_id)) @@ -340,8 +340,8 @@ class CommentCatalogTest(unittest.TestCase): brains = self.catalog.searchResults( portal_type='Discussion Item') - self.assertEquals(len(brains), 1) - self.assertEquals(brains[0].getPath(), + self.assertEqual(len(brains), 1) + self.assertEqual(brains[0].getPath(), '/plone/doc2/++conversation++default/' + str(self.comment_id))