Ignore certain lines for code coverage.

svn path=/plone.app.discussion/trunk/; revision=40494
This commit is contained in:
Timo Stollenwerk 2010-10-03 16:52:26 +00:00
parent f5cf756e31
commit 603bcf3547
1 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
def handleCancel(self, action):
# This method should never be called, it's only there to show
# a cancel button that is handled by a jQuery method.
pass
pass # pragma: no cover
class CommentsViewlet(ViewletBase):
@ -261,7 +261,7 @@ class CommentsViewlet(ViewletBase):
self.get_replies(workflow_actions).next()
return True
except StopIteration:
pass
pass # pragma: no cover
return False
def get_replies(self, workflow_actions=False):