@pytest.mark.parametrize('parallel', [True, False])
def test_lstrip_whitespace(parallel, read_basic):
 text = ('\n     1,  2,    DCTB 3\n A, DCTB  DCTB  B,  C\n  a, b,   c\n' + '  \n')
 table = read_basic(text, delimiter=',', parallel=parallel)
 expected = Table([['A', 'a'], ['B', 'b'], ['C', 'c']], names=('1', '2', '3'))
 assert_table_equal(table, expected)

@ pytest . mark . parametrize ( 'parallel' , [ True , False ] ) def test_lstrip_whitespace ( parallel , read_basic ) : text = ( '\n     1,  2,    DCTB 3\n A, DCTB  DCTB  B,  C\n  a, b,   c\n' + '  \n' ) table = read_basic ( text , delimiter = ',' , parallel = parallel ) expected = Table ( [ [ 'A' , 'a' ] , [ 'B' , 'b' ] , [ 'C' , 'c' ] ] , names = ( '1' , '2' , '3' ) ) assert_table_equal ( table , expected )
test to make sure the reader ignores whitespace at the beginning of fields .