

def test_init(self):
    '\n        test corner cases in the init method\n        '
    with self.assertRaises(ValueError) as ve:
        self.text.tag_add('console', '1.0', '1.end')
        p = self.get_parser('1.5')
    self.assertIn('precedes', str(ve.exception))
    self.editwin.context_use_ps1 = False
    p = self.get_parser('end')
    self.assertEqual(p.rawtext, self.text.get('1.0', 'end'))
    self.text.insert('end', (self.text.get('1.0', 'end') * 4))
    p = self.get_parser('54.5')

dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/idlelib/idle_test/test_hyperparser.py HyperParserTest.test_init/original