#NEWLINE# def test_limit( self ) : #NEWLINE# #INDENT# client = pyorient . OrientDB ( 'localhost' , 2424 ) #NEWLINE# client . connect ( 'root' , 'root' ) #NEWLINE# db_name = 'GratefulDeadConcerts' #NEWLINE# cluster_info = client . db_open ( db_name , 'admin' , 'admin' , pyorient . DB_TYPE_GRAPH , '' ) #NEWLINE# assert ( len ( client . query ( 'select from V Limit 1' ) ) == 1 ) #NEWLINE# assert ( len ( client . query ( 'select from V Limit 51' ) ) == 51 ) #NEWLINE# assert ( len ( client . query ( 'select from V lIMit 51' ) ) == 51 ) #NEWLINE# assert ( len ( client . query ( 'select from V LIMIT 51' ) ) == 51 ) #NEWLINE# assert ( len ( client . query ( 'select from V limit 51' ) ) == 51 ) #NEWLINE# assert ( len ( client . query ( 'select from V limit 1' ) ) == 1 ) #NEWLINE# assert ( len ( client . query ( 'select from V' , 25 ) ) == 25 ) #NEWLINE# assert ( len ( client . query ( 'select from V limit 21' , 10 ) ) == 21 ) #NEWLINE# assert ( len ( client . query ( 'select from V LIMIT 21' , 10 ) ) == 21 ) #NEWLINE# assert ( len ( client . query ( 'select from V' ) ) == 20 )