def testApprovePost(self):
        c1, c2, c3, c4 = self.createSomeComments()
        c1.is_public = False; c1.save()

        makeModerator("normaluser")
        self.client.login(username="normaluser", password="normaluser")
        response = self.client.post("/approve/1/")
        self.assertEqual(response["Location"], "http://testserver/approved/?c=1")
        c = Comment.objects.get(pk=1)
        self.failUnless(c.is_public)
        self.assertEqual(c.flags.filter(flag=CommentFlag.MODERATOR_APPROVAL, user__username="normaluser").count(), 1)
Only work on POSIX-like systems
dataset/ETHPy150Open dcramer/django-compositepks/tests/regressiontests/comment_tests/tests/moderation_view_tests.py/ApproveViewTests.testApprovePost--crossover with--dataset/ETHPy150Open stackdio/stackdio/stackdio/server/management/saltdirs/core_states/_modules/file_ext.py/__virtual__