def test_topic_unread_list(self):
        TopicUnread.objects.filter(pk__in=[self.topic_unread.pk, self.topic_unread2.pk])\
            .update(is_read=False)

        utils.login(self)
        response = self.client.get(reverse('spirit:topic:unread:index'))
        self.assertEqual(list(response.context['page']), [self.topic2, self.topic])

        # fake next page
        response = self.client.get(reverse('spirit:topic:unread:index') + "?topic_id=" + str(self.topic2.pk))
        self.assertEqual(list(response.context['page']), [self.topic, ])
topic unread list
dataset/ETHPy150Open nitely/Spirit/spirit/topic/unread/tests.py/TopicUnreadViewTest.test_topic_unread_list