def testApprovePostUnsafeNext(self):
        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': "http://elsewhere/bad"})
        self.assertEqual(response["Location"],
            "http://testserver/approved/?c=%d" % c1.pk)
Parent directory of the downloads directory
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/comment_tests/tests/moderation_view_tests.py/ApproveViewTests.testApprovePostUnsafeNext--crossover with--dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py/API.receiver_directory