MCPcopy Index your code
hub / github.com/wireservice/csvkit / assertRows

Method assertRows

tests/utils.py:86–92  ·  view source on GitHub ↗
(self, args, rows)

Source from the content-addressed store, hash-verified

84 self.assertEqual(f.getvalue().splitlines()[-1], f'{command}: error: {message}')
85
86 def assertRows(self, args, rows):
87 reader = self.get_output_as_reader(args)
88
89 for row in rows:
90 self.assertEqual(next(reader), row)
91
92 self.assertRaises(StopIteration, next, reader)
93
94 def assertLines(self, args, rows, newline_at_eof=True):
95 lines = self.get_output_as_list(args)

Callers 15

test_runsMethod · 0.80
test_encodingMethod · 0.80
test_ignore_caseMethod · 0.80
test_no_header_rowMethod · 0.80
test_globMethod · 0.80
test_singleMethod · 0.80
test_no_blanksMethod · 0.80
test_blanksMethod · 0.80
test_no_inferenceMethod · 0.80
test_skip_linesMethod · 0.80

Calls 1

get_output_as_readerMethod · 0.95

Tested by 15

test_runsMethod · 0.64
test_encodingMethod · 0.64
test_ignore_caseMethod · 0.64
test_no_header_rowMethod · 0.64
test_globMethod · 0.64
test_singleMethod · 0.64
test_no_blanksMethod · 0.64
test_blanksMethod · 0.64
test_no_inferenceMethod · 0.64
test_skip_linesMethod · 0.64