From 52c6372664f1aca583a4e9af4206ac09c1ba2647 Mon Sep 17 00:00:00 2001 From: Paul J Stevens Date: Tue, 16 Apr 2013 10:12:04 +0000 Subject: [PATCH] fix deprecation warning --- plone/app/discussion/tests/test_catalog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plone/app/discussion/tests/test_catalog.py b/plone/app/discussion/tests/test_catalog.py index d85c8fc..5cb26a7 100644 --- a/plone/app/discussion/tests/test_catalog.py +++ b/plone/app/discussion/tests/test_catalog.py @@ -549,7 +549,7 @@ class CommentCatalogTest(unittest.TestCase): 'v': 'Comment', }] - self.assertEqual(len(collection.results()), 1) + self.assertEqual(collection.results().length, 1) self.assertEqual(collection.results()[0].text, 'Comment text') self.assertEqual(collection.results()[0].creator, 'jim') self.assertEqual(collection.results()[0].author_name, 'Jim')