rebased CHANGES and tests

This commit is contained in:
Andrea Cecchi 2014-03-26 18:22:59 +01:00
parent e453e0050b
commit 4f255a355d

View File

@ -203,6 +203,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)