rebased CHANGES and tests

This commit is contained in:
Andrea Cecchi 2014-03-26 18:22:59 +01:00
parent 22cc340ff6
commit dec8bd63dd
2 changed files with 3 additions and 2 deletions

View File

@ -73,8 +73,8 @@ Changelog
PLONE_FIXTURE. PLONE_FIXTURE.
[timo] [timo]
- Fix ownership of comments. [toutpt] - Fix ownership of comments.
[toutpt]
2.2.10 (2013-09-24) 2.2.10 (2013-09-24)
------------------- -------------------

View File

@ -188,6 +188,7 @@ class TestCommentForm(unittest.TestCase):
for comment in comments: for comment in comments:
self.assertEqual(comment.text, u"foobar") self.assertEqual(comment.text, u"foobar")
self.assertEqual(comment.creator, "test_user_1_") self.assertEqual(comment.creator, "test_user_1_")
self.assertEqual(comment.getOwner().getUserName(), "test-user") self.assertEqual(comment.getOwner().getUserName(), "test-user")
local_roles = comment.get_local_roles() local_roles = comment.get_local_roles()
self.assertEqual(len(local_roles), 1) self.assertEqual(len(local_roles), 1)