'The approve view should only be accessible to \'moderators\''

def testApprovePermissions(self):

    comments = self.createSomeComments()
    pk = comments[0].pk
    self.client.login(username=u'normaluser', password=u'normaluser')
    response = self.client.get((u'/approve/%d/' % pk))
    self.assertEqual(response[u'Location'], (u'http://testserver/accounts/login/?next=/approve/%d/' % pk))
    makeModerator(u'normaluser')
    response = self.client.get((u'/approve/%d/' % pk))
    self.assertEqual(response.status_code, 200)
