#NEWLINE# def test_multistatement( self ) : #NEWLINE# #INDENT# sql1 = 'select * from foo;' #NEWLINE# sql2 = 'select * from bar;' #NEWLINE# stmts = sqlparse . parse ( ( sql1 + sql2 ) ) #NEWLINE# self . assertEqual ( len ( stmts ) , 2 ) #NEWLINE# self . assertEqual ( str ( stmts [ 0 ] ) , stmts ) #NEWLINE# self . assertEqual ( str ( stmts [ 1 ] ) , sql2 )