2 lines between top level functions/classes
This commit is contained in:
@@ -44,7 +44,6 @@ class CommentContentRulesTest(unittest.TestCase):
|
||||
conversation = IConversation(self.document)
|
||||
conversation.addComment(comment)
|
||||
|
||||
|
||||
def testEventTypesMarked(self):
|
||||
self.assertTrue(IRuleEventType.providedBy(ICommentAddedEvent))
|
||||
self.assertTrue(IRuleEventType.providedBy(ICommentRemovedEvent))
|
||||
|
||||
@@ -27,20 +27,29 @@ class EventsRegistry(object):
|
||||
#
|
||||
# Fake event handlers
|
||||
#
|
||||
|
||||
|
||||
def comment_added(doc, evt):
|
||||
EventsRegistry.commentAdded = True
|
||||
|
||||
|
||||
def comment_removed(doc, evt):
|
||||
EventsRegistry.commentRemoved = True
|
||||
|
||||
|
||||
def reply_added(doc, evt):
|
||||
EventsRegistry.replyAdded = True
|
||||
|
||||
|
||||
def reply_removed(doc, evt):
|
||||
EventsRegistry.replyRemoved = True
|
||||
|
||||
|
||||
#
|
||||
# Tests
|
||||
#
|
||||
|
||||
|
||||
class CommentEventsTest(unittest.TestCase):
|
||||
""" Test custom comments events
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user