def test_read_twoline_ReST():
 table = '\n======= ===========\n  Col1    Col2\n======= ===========\n  1.2   "hello"\n  2.4   \'s worlds\n======= ===========\n'
 dat = ascii.read(table, Reader=ascii.FixedWidthTwoLine, header_start=1, position_line=2, data_end=(-1))
 assert_equal(dat.dtype.names, ('Col1', 'Col2'))
 assert_almost_equal(dat[1][0], 2.4)
 assert_equal(dat[0][1], '"hello"')
 assert_equal(dat[1][1], "'s worlds")

def test_read_twoline_ReST ( ) : table = '\n======= ===========\n  Col1    Col2\n======= ===========\n  1.2   "hello"\n  2.4   \'s worlds\n======= ===========\n' dat = ascii . read ( table , Reader = ascii . FixedWidthTwoLine , header_start = 1 , position_line = 2 , data_end = ( - 1 ) ) assert_equal ( dat . dtype . names , ( 'Col1' , 'Col2' ) ) assert_almost_equal ( dat [ 1 ] [ 0 ] , 2.4 ) assert_equal ( dat [ 0 ] [ 1 ] , '"hello"' ) assert_equal ( dat [ 1 ] [ 1 ] , "'s worlds" )
read restructured text table .