Lines Matching refs:line
50 self.assertEqual(exc.line, 1)
56 self.assertEqual(exc.line, 3)
75 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 0)
76 self.assertEqual(line, 1)
79 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 1)
80 self.assertEqual(line, 1)
83 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 2)
84 self.assertEqual(line, 1)
88 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 3)
89 self.assertEqual(line, 2)
92 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 4)
93 self.assertEqual(line, 2)
96 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 5)
97 self.assertEqual(line, 2)
100 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 6)
101 self.assertEqual(line, 2)
105 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 7)
106 self.assertEqual(line, 3)
109 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 8)
110 self.assertEqual(line, 3)
113 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 9)
114 self.assertEqual(line, 3)
118 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 10)
119 self.assertEqual(line, 4)
147 self.assertEqual(ctx.exception.line, 1)
152 self.assertEqual(ctx.exception.line, 1)
170 self.assertEqual(ctx.exception.line, 1)
220 self.assertEqual(ctx.exception.line, 1)
246 self.assertEqual(ctx.exception.line, 1)
273 self.assertEqual(ctx.exception.line, 1)
302 self.assertEqual(ctx.exception.line, 1)
336 self.assertEqual(ctx.exception.line, 1)