def test_context(self):
        response = self.client.get(reverse('thread_json'))
        content = json.loads(response.content)
        self.assertIn('current_time', content)
        self.assertIn('alerts', content)
        self.assertIn('paginator', content)

        paginator_content = content['paginator']
        self.assertIn('page_number', paginator_content)
        self.assertIn('total_pages', paginator_content)
        self.assertIn('total_threads', paginator_content)
        self.assertIn('has_other_pages', paginator_content)
Context should contain the correct keys.
dataset/ETHPy150Open ofa/connect/open_connect/connectmessages/tests/test_views.py/ThreadJSONListViewTest.test_context