@mock.patch.object(NewPostEvent, 'fire')
    def test_fire_on_reply(self, fire):
        t = ThreadFactory()
        u = UserFactory()
        self.client.login(username=u.username, password='testpass')
        post(self.client, 'wiki.discuss.reply', {'content': 'a post'},
             args=[t.document.slug, t.id])
        # NewPostEvent.fire() is called.
        assert fire.called
Update an instance info cache record in the table.
dataset/ETHPy150Open mozilla/kitsune/kitsune/kbforums/tests/test_notifications.py/NotificationsTests.test_fire_on_reply--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/db/api.py/instance_info_cache_update