

def testApprovePostNext(self):
    '\n        POSTing the approve view will redirect to an explicitly provided a next\n        url.\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/' % c1.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 ApproveViewTests.testApprovePostNext/original