def test_insert_content(self):
        self.panel.process_view(self.request, regular_view, ('profiling',), {})
        self.panel.process_response(self.request, self.response)
        # ensure the panel does not have content yet.
        self.assertNotIn('regular_view', self.panel.content)
        self.panel.generate_stats(self.request, self.response)
        # ensure the panel renders correctly.
        self.assertIn('regular_view', self.panel.content)
Test that the panel only inserts content after generate_stats and
dataset/ETHPy150Open django-debug-toolbar/django-debug-toolbar/tests/panels/test_profiling.py/ProfilingPanelTestCase.test_insert_content