'POST the flag view: actually flag the view (nice for XHR)'

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
