def testFlagPostUnsafeNext(self):
        comments = self.createSomeComments()
        pk = comments[0].pk
        self.client.login(username="normaluser", password="normaluser")
        response = self.client.post("/flag/%d/" % pk,
            {'next': "http://elsewhere/bad"})
        self.assertEqual(response["Location"],
            "http://testserver/flagged/?c=%d" % pk)
Called when a user has pressed the close icon of a tab in the
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/comment_tests/tests/moderation_view_tests.py/FlagViewTests.testFlagPostUnsafeNext--crossover with--dataset/ETHPy150Open rwl/muntjac/muntjac/ui/tab_sheet.py/ICloseHandler.onTabClose