def test_commented_csv():
 t = ascii.read(['#a,b', '1,2', '#3,4'], format='csv')
 assert (t.colnames == ['#a', 'b'])
 assert (len(t) == 2)
 assert (t['#a'][1] == '#3')

def test_commented_csv ( ) : t = ascii . read ( [ '#a,b' , '1,2' , '#3,4' ] , format = 'csv' ) assert ( t . colnames == [ '#a' , 'b' ] ) assert ( len ( t ) == 2 ) assert ( t [ '#a' ] [ 1 ] == '#3' )
check that csv reader does not have ignore lines with the # comment character which is defined for most basic readers .