def test_get_serialized_threads(self):
        thread1 = self.create_thread()
        user = thread1.test_shortcuts['sender']
        thread2 = self.create_thread(user)
        threads = Thread.public.by_user(user).filter(
            pk__in=[thread1.pk, thread2.pk])

        view = views.BaseThreadListView()
        view.request = self.request_factory.get('/')
        view.request.user = user

        result = view.get_serialized_threads(threads)

        self.assertEqual(len(result), 2)
        timezone = pytz.timezone('America/Chicago')
        self.assertDictEqual(
            threads[0].serializable(timezone.zone),
            result[0]
        )
        self.assertDictEqual(
            threads[1].serializable(timezone.zone),
            result[1]
        )
Gets and sets the key of the :class:`Option`
dataset/ETHPy150Open ofa/connect/open_connect/connectmessages/tests/test_views.py/BaseThreadListViewTest.test_get_serialized_threads--crossover with--dataset/ETHPy150Open OneDrive/onedrive-sdk-python/src/onedrivesdk/options.py/Option.key