def test_skip_empty_line_1(): data = read_table(os.path.join(TDATA_ROOT, 'empty-line-1.txt'), None, None, 1) assert (data == [['a', 'b', 'c'], ['1', '2', '3']])
def test_skip_empty_line_1(): data = read_table(os.path.join(TDATA_ROOT, 'empty-line-1.txt'), None, None, 1) assert(data == [['a', 'b', 'c'], ['1', '2', '3']])
def test_hash_headers(): data = read_table(os.path.join(TDATA_ROOT, 'hash-headers.txt'), None, None, 1) assert (data == [['a', 'b', 'c'], ['1', '2', '3']])
def test_hash_headers(): data = read_table(os.path.join(TDATA_ROOT, 'hash-headers.txt'), None, None, 1) assert(data == [['a', 'b', 'c'], ['1', '2', '3']])
def test_xls_read(): data, _ = read_table(os.path.join(TDATA_ROOT, 'simple.xls'), None, None, 1) assert (data == [['a', 'b', 'c'], [1.0, 2.0, 3.0], [4.0, 5.0, 6.0]])
def test_xls_fallback(): data, _ = read_table(os.path.join(TDATA_ROOT, 'not-xls.xls'), None, None, 1) assert (data == [['a', 'b', 'c'], ['1', '2', '3'], ['4', '5', '6']])
def test_xls_read(): data, _ = read_table(os.path.join(TDATA_ROOT, 'simple.xls'), None, None, 1) assert(data == [['a', 'b', 'c'], [1.0, 2.0, 3.0], [4.0, 5.0, 6.0]])
def test_xls_fallback(): data, _ = read_table(os.path.join(TDATA_ROOT, 'not-xls.xls'), None, None, 1) assert(data == [['a', 'b', 'c'], ['1', '2', '3'], ['4', '5', '6']])