Lines Matching refs:lines
18 def check_log_entries(lines, mask, max_level=LOGL_INFO): argument
30 assert 'log_run() log %d' % i == lines.next()
32 assert 'func() _log %d' % i == lines.next()
45 lines = iter(split)
46 assert 'test %d' % testnum == lines.next()
47 return lines
50 lines = run_test(0)
51 check_log_entries(lines, 3)
54 lines = run_test(1)
55 check_log_entries(lines, 3)
58 lines = run_test(2)
61 lines = run_test(3)
62 check_log_entries(lines, 2)
65 lines = run_test(4)
66 assert next(lines, None) == None
69 lines = run_test(5)
70 check_log_entries(lines, 2)
73 lines = run_test(6)
74 check_log_entries(lines, 3)
77 lines = run_test(7)
78 check_log_entries(lines, 3, LOGL_WARNING)
81 lines = run_test(8)
82 check_log_entries(lines, 3)
85 lines = run_test(9)
86 check_log_entries(lines, 3)