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

Method assertLines

tests/utils.py:94–103  ·  view source on GitHub ↗
(self, args, rows, newline_at_eof=True)

Source from the content-addressed store, hash-verified

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)
96
97 if newline_at_eof:
98 rows.append('')
99
100 for i, row in enumerate(rows):
101 self.assertEqual(lines[i], row)
102
103 self.assertEqual(len(lines), len(rows))
104
105
106class EmptyFileTests:

Callers 15

test_stdinMethod · 0.80
test_skip_linesMethod · 0.80
test_skip_headerMethod · 0.80
test_no_header_rowMethod · 0.80
test_linenumbersMethod · 0.80
test_delimiterMethod · 0.80
test_tabsMethod · 0.80
test_asvMethod · 0.80
test_quotecharMethod · 0.80
test_doublequoteMethod · 0.80
test_escapecharMethod · 0.80

Calls 1

get_output_as_listMethod · 0.95

Tested by 15

test_stdinMethod · 0.64
test_skip_linesMethod · 0.64
test_skip_headerMethod · 0.64
test_no_header_rowMethod · 0.64
test_linenumbersMethod · 0.64
test_delimiterMethod · 0.64
test_tabsMethod · 0.64
test_asvMethod · 0.64
test_quotecharMethod · 0.64
test_doublequoteMethod · 0.64
test_escapecharMethod · 0.64