Remove comment title from comments viewlet tests.

svn path=/plone.app.discussion/trunk/; revision=40496
This commit is contained in:
Timo Stollenwerk
2010-10-03 19:41:02 +00:00
parent ede295e649
commit 6d92d1383c
2 changed files with 5 additions and 13 deletions
+3 -3
View File
@@ -180,7 +180,7 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
comment.creation_date = comment.modification_date = datetime.utcnow()
else:
raise Unauthorized, "Anonymous user tries to post a comment, but \
anonymous commenting is disabled."
anonymous commenting is disabled." # pragma: no cover
# Check if the added comment is a reply to an existing comment
# or just a regular reply to the content object.
@@ -260,8 +260,8 @@ class CommentsViewlet(ViewletBase):
try:
self.get_replies(workflow_actions).next()
return True
except StopIteration:
pass # pragma: no cover
except StopIteration: # pragma: no cover
pass
return False
def get_replies(self, workflow_actions=False):