def testFlagPost(self):
        comments = self.createSomeComments()
        pk = comments[0].pk
        self.client.login(username="normaluser", password="normaluser")
        response = self.client.post("/flag/%d/" % pk)
        self.assertEqual(response["Location"], "http://testserver/flagged/?c=%d" % pk)
        c = Comment.objects.get(pk=pk)
        self.assertEqual(c.flags.filter(flag=CommentFlag.SUGGEST_REMOVAL).count(), 1)
        return c
Test expiring a cached snapshot by caching a snapshot with the
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/comment_tests/tests/moderation_view_tests.py/FlagViewTests.testFlagPost--crossover with--dataset/ETHPy150Open dropbox/changes/tests/changes/api/test_cached_snapshot_details.py/CachedSnapshotClusterDetailsAPITestCase.test_expire