

def test_insert_unred_topics_in_context(self):
    new_topic = create_topic(forum=self.forum_4, poster=self.u1)
    PostFactory.create(topic=new_topic, poster=self.u1)
    correct_url = reverse('forum_tracking:unread_topics')
    response = self.client.get(correct_url, follow=True)
    assert (response.status_code == 200)
    assert (list(response.context_data['topics']) == [new_topic])

dataset/ETHPy150Open ellmetha/django-machina/tests/functional/tracking/test_views.py TestUnreadTopicsView.test_insert_unred_topics_in_context/original