

def testDeletePostNext(self):
    '\n        POSTing the delete view will redirect to an explicitly provided a next\n        url.\n        '
    comments = self.createSomeComments()
    pk = comments[0].pk
    makeModerator('normaluser')
    self.client.login(username='normaluser', password='normaluser')
    response = self.client.post(('/delete/%d/' % pk), {
        'next': '/go/here/',
    })
    self.assertEqual(response['Location'], 'http://testserver/go/here/?c=1')

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/comment_tests/tests/moderation_view_tests.py DeleteViewTests.testDeletePostNext/original