def test_get_extra_context(self):
        review_ui = self.file_attachment2.review_ui
        request = self.factory.get('test')
        request.user = self.user

        self.spy_on(review_ui.get_extra_context)

        review_ui.render_to_string(request=request)

        self.assertTrue(review_ui.get_extra_context.called)
Attach bare hooks declared in config.
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/reviews/ui/tests.py/SandboxTests.test_get_extra_context--crossover with--dataset/ETHPy150Open clips/pattern/pattern/server/cherrypy/cherrypy/_cprequest.py/hooks_namespace