Replace deprecated test assert statements.

This commit is contained in:
tisto 2013-10-10 16:28:24 +02:00
parent fbc78e2951
commit e7cae8430a
2 changed files with 7 additions and 4 deletions

View File

@ -4,6 +4,9 @@ Changelog
2.3.0 (unreleased) 2.3.0 (unreleased)
------------------ ------------------
- Replace deprecated test assert statements.
[timo]
- Remove portal_discussion tool. - Remove portal_discussion tool.
[timo] [timo]

View File

@ -91,10 +91,10 @@ class ConversationTest(unittest.TestCase):
comment.author_username = "nobody" comment.author_username = "nobody"
conversation.addComment(comment) conversation.addComment(comment)
comment.manage_permission("View", roles=tuple()) comment.manage_permission("View", roles=tuple())
self.assertEquals(0, conversation.total_comments) self.assertEqual(0, conversation.total_comments)
self.assertEquals(None, conversation.last_comment_date) self.assertEqual(None, conversation.last_comment_date)
self.assertEquals(["nobody"], list(conversation.commentators)) self.assertEqual(["nobody"], list(conversation.commentators))
self.assertEquals([], list(conversation.public_commentators)) self.assertEqual([], list(conversation.public_commentators))
def test_delete_comment(self): def test_delete_comment(self):
# Create a conversation. In this case we doesn't assign it to an # Create a conversation. In this case we doesn't assign it to an