def test_read_normal_names():
 table = '\n# comment (with blank line above)\n|  Col1  |  Col2   |\n|  1.2   | "hello" |\n|  2.4   |\'s worlds|\n'
 reader = ascii.get_reader(Reader=ascii.FixedWidth, names=('name1', 'name2'))
 dat = reader.read(table)
 assert_equal(dat.colnames, ['name1', 'name2'])
 assert_almost_equal(dat[1][0], 2.4)

def test_read_normal_names ( ) : table = '\n# comment (with blank line above)\n|  Col1  |  Col2   |\n|  1.2   | "hello" |\n|  2.4   |\'s worlds|\n' reader = ascii . get_reader ( Reader = ascii . FixedWidth , names = ( 'name1' , 'name2' ) ) dat = reader . read ( table ) assert_equal ( dat . colnames , [ 'name1' , 'name2' ] ) assert_almost_equal ( dat [ 1 ] [ 0 ] , 2.4 )
normal simplerst table with provided column names .