def testFlagPost(self):
        self.createSomeComments()
        self.client.login(username="normaluser", password="normaluser")
        response = self.client.post("/flag/1/")
        self.assertEqual(response["Location"], "http://testserver/flagged/?c=1")
        c = Comment.objects.get(pk=1)
        self.assertEqual(c.flags.filter(flag=CommentFlag.SUGGEST_REMOVAL).count(), 1)
        return c
POST the flag view: actually flag the view (nice for XHR)
dataset/ETHPy150Open dcramer/django-compositepks/tests/regressiontests/comment_tests/tests/moderation_view_tests.py/FlagViewTests.testFlagPost