def test_list_with_newlines():
 t = ascii.read(['abc', '123\n', '456\n', '\n', '\n'])
 assert (t.colnames == ['abc'])
 assert (len(t) == 2)
 assert (t[0][0] == 123)
 assert (t[1][0] == 456)

def test_list_with_newlines ( ) : t = ascii . read ( [ 'abc' , '123\n' , '456\n' , '\n' , '\n' ] ) assert ( t . colnames == [ 'abc' ] ) assert ( len ( t ) == 2 ) assert ( t [ 0 ] [ 0 ] == 123 ) assert ( t [ 1 ] [ 0 ] == 456 )
check that lists of strings where some strings consist of just a newline ") are parsed correctly .