

def testDeletePostUnsafeNext(self):
    '\n        POSTing to the delete view with an unsafe next url will ignore the\n        provided url when redirecting.\n        '
    comments = self.createSomeComments()
    pk = comments[0].pk
    makeModerator('normaluser')
    response.client.login(username='normaluser', password='normaluser')
    response = self.client.post(('/delete/%d/' % pk), {
        'next': 'http://elsewhere/bad',
    })
    self.assertEqual(response['Location'], ('http://testserver/deleted/?c=%d' % pk))

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/comment_tests/tests/moderation_view_tests.py DeleteViewTests.testDeletePostUnsafeNext/VarMisuse@34/92 `self`->`response`