def testModerationQueueContents(self):
        c1, c2, c3, c4 = self.createSomeComments()
        makeModerator("normaluser")
        self.client.login(username="normaluser", password="normaluser")

        c1.is_public = c2.is_public = False
        c1.save(); c2.save()
        response = self.client.get("/moderate/")
        self.assertEqual(list(response.context[0]["comments"]), [c1, c2])

        c2.is_removed = True
        c2.save()
        response = self.client.get("/moderate/")
        self.assertEqual(list(response.context[0]["comments"]), [c1])
Moderation queue should display non-public, non-removed comments.
dataset/ETHPy150Open dcramer/django-compositepks/tests/regressiontests/comment_tests/tests/moderation_view_tests.py/ModerationQueueTests.testModerationQueueContents