#NEWLINE# def test_read_nonsequential( spawnbdb ) : #NEWLINE# #INDENT# c = c #NEWLINE# with read_data ( ) as fname : #NEWLINE# #INDENT# c . sendexpectcmd ( ( '.read %s' % ( fname , ) ) ) #NEWLINE# c . expect_lines ( [ 'Usage: .csv <table> </path/to/data.csv>' , '      NAME' , '----------' , 'Abilene TX' , '  Akron OH' , '             NAME' , '-----------------' , '       Abilene TX' , '         Akron OH' , 'Alameda County CA' , '        Albany GA' , '        Albany NY' ] ) #NEWLINE# #UNINDENT# c . expect_prompt ( )