From dec8bd63dd105780a25dd91ba9da99d825fde821 Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Wed, 26 Mar 2014 18:22:59 +0100 Subject: [PATCH] rebased CHANGES and tests --- CHANGES.rst | 4 ++-- plone/app/discussion/tests/test_comments_viewlet.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index fc099ad..3c504a3 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -73,8 +73,8 @@ Changelog PLONE_FIXTURE. [timo] -- Fix ownership of comments. [toutpt] - +- Fix ownership of comments. + [toutpt] 2.2.10 (2013-09-24) ------------------- diff --git a/plone/app/discussion/tests/test_comments_viewlet.py b/plone/app/discussion/tests/test_comments_viewlet.py index efcbdf0..fd81b7a 100644 --- a/plone/app/discussion/tests/test_comments_viewlet.py +++ b/plone/app/discussion/tests/test_comments_viewlet.py @@ -188,6 +188,7 @@ class TestCommentForm(unittest.TestCase): for comment in comments: self.assertEqual(comment.text, u"foobar") self.assertEqual(comment.creator, "test_user_1_") + self.assertEqual(comment.getOwner().getUserName(), "test-user") local_roles = comment.get_local_roles() self.assertEqual(len(local_roles), 1)