fix deprecation warning

This commit is contained in:
Paul J Stevens 2013-04-16 10:12:04 +00:00
parent 1946991928
commit 52c6372664

View File

@ -549,7 +549,7 @@ class CommentCatalogTest(unittest.TestCase):
'v': 'Comment', '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].text, 'Comment text')
self.assertEqual(collection.results()[0].creator, 'jim') self.assertEqual(collection.results()[0].creator, 'jim')
self.assertEqual(collection.results()[0].author_name, 'Jim') self.assertEqual(collection.results()[0].author_name, 'Jim')