@mock.patch.object(NewThreadEvent, 'fire')
    def test_fire_on_new_thread(self, fire):
        d = DocumentFactory()
        u = UserFactory()
        self.client.login(username=u.username, password='testpass')
        post(self.client, 'wiki.discuss.new_thread',
             {'title': 'a title', 'content': 'a post'},
             args=[d.slug])
        # NewThreadEvent.fire() is called.
        assert fire.called
Compute score for 2 random uniform cluster labelings.
dataset/ETHPy150Open mozilla/kitsune/kitsune/kbforums/tests/test_notifications.py/NotificationsTests.test_fire_on_new_thread--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/examples/cluster/plot_adjusted_for_chance_measures.py/uniform_labelings_scores