def test_bad_indentation(self):
        err = self.get_exception_format(self.syntax_error_bad_indentation,
                                        IndentationError)
        self.assert_(len(err) == 4)
        self.assert_(err[1].strip() == "print 2")
        self.assert_("^" in err[2])
        # Antlr thinks the error is at the indentation, while CPython points at
        # the end of the line.  I am agreeing with Antlr over CPython here.
        self.assert_(err[1].find("p") -1 == err[2].find("^"))
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_traceback.py/TracebackCases.test_bad_indentation/original