def testDeletePermissions(self):
        comments = self.createSomeComments()
        pk = comments[0].pk
        self.client.login(username="normaluser", password="normaluser")
        response = self.client.get("/delete/%d/" % pk)
        self.assertEqual(response["Location"], "http://testserver/accounts/login/?next=/delete/%d/" % pk)

        makeModerator("normaluser")
        response = self.client.get("/delete/%d/" % pk)
        self.assertEqual(response.status_code, 200)
Creates or returns the Target at targets[target_name]. If there is no
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/comment_tests/tests/moderation_view_tests.py/DeleteViewTests.testDeletePermissions--crossover with--dataset/ETHPy150Open adblockplus/gyp/pylib/gyp/generator/analyzer.py/_GetOrCreateTargetByName