#NEWLINE# def test_paginate( self ) : #NEWLINE# #INDENT# sq = SelectQuery ( User ) . paginate ( 1 , 20 ) #NEWLINE# self . assertEqual ( sq . _limit , 20 ) #NEWLINE# self . assertEqual ( sq . _offset , 0 ) #NEWLINE# sq = SelectQuery ( User ) . paginate ( 3 , 30 ) #NEWLINE# self . assertEqual ( sq . _limit , 30 ) #NEWLINE# self . assertEqual ( sq . _offset , 60 )