

def testApprovePostUnsafeNext(self):
    '\n        POSTing to the approve view with an unsafe next url will ignore the\n        provided url when redirecting.\n        '
    (c1, c2, c3, c4) = self.createSomeComments()
    c1.is_public = False
    c1.save()
    makeModerator('normaluser')
    self.client.login(username='normaluser', password='normaluser')
    response = self.client.post(('/approve/%d/' % c4.pk), {
        'next': 'http://elsewhere/bad',
    })
    self.assertEqual(response['Location'], ('http://testserver/approved/?c=%d' % c1.pk))

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/comment_tests/tests/moderation_view_tests.py ApproveViewTests.testApprovePostUnsafeNext/VarMisuse@71/143 `c1`->`c4`