@mock.patch.object(NewThreadEvent, 'fire')
    def test_fire_on_new_thread(self, fire):
        u = UserFactory()
        f = ForumFactory()
        self.client.login(username=u.username, password='testpass')
        post(self.client, 'forums.new_thread',
             {'title': 'a title', 'content': 'a post'},
             args=[f.slug])
        # NewThreadEvent.fire() is called.
        assert fire.called
clearShapes() -> None
dataset/ETHPy150Open mozilla/kitsune/kitsune/forums/tests/test_notifications.py/NotificationsTests.test_fire_on_new_thread--crossover with--dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/graphics_view.py/QInteractiveGraphicsScene.clearItems