#NEWLINE# def test_newlines( self ) : #NEWLINE# #INDENT# sql = 'select\n*from foo;' #NEWLINE# p = sqlparse . parse ( sql ) [ 0 ] #NEWLINE# self . assertEqual ( u ( sql ) , sql ) #NEWLINE# sql = 'select\r\n*from foo' #NEWLINE# p = sqlparse . parse ( sql ) [ 0 ] #NEWLINE# self . assertEqual ( u ( p ) , sql ) #NEWLINE# sql = 'select\r*from foo' #NEWLINE# p = sqlparse . parse ( sql ) [ 0 ] #NEWLINE# self . assertEqual ( u ( p ) , sql ) #NEWLINE# sql = 'select\r\n*from foo\n' #NEWLINE# p = sqlparse . parse ( sql ) [ 0 ] #NEWLINE# self . assertEqual ( u ( p ) , sql )