'GET/POST the flag view while not logged in: redirect to log in.'

def testFlagAnon(self):

    comments = self.createSomeComments()
    pk = comments[0].pk
    response = self.client.get(('/flag/%d/' % pk))
    self.assertEqual(response['Location'], ('http://testserver/accounts/login/?next=/flag/%d/' % pk))
    response = self.client.post(('/flag/%d/' % pk))
    self.assertEqual(response['Location'], ('http://testserver/accounts/login/?next=/flag/%d/' % pk))
