def test_with_id(self):
        thread1 = self.create_thread(recipient=self.user)
        thread2 = self.create_thread(recipient=self.user)
        response = self.client.get(
            reverse('thread_json'),
            {'id': thread1.pk}
        )
        self.assertContains(response, thread1.first_message.snippet)
        self.assertNotContains(response, thread2.first_message.snippet)
If id is specified, response should only include that thread.
dataset/ETHPy150Open ofa/connect/open_connect/connectmessages/tests/test_views.py/ThreadJSONListViewTest.test_with_id