#NEWLINE# def test_page_size( self ) : #NEWLINE# #INDENT# u1 = UserFactory ( ) #NEWLINE# u2 = UserFactory ( ) #NEWLINE# RevisionFactory ( creator = u1 ) #NEWLINE# RevisionFactory ( creator = u2 ) #NEWLINE# self . refresh ( ) #NEWLINE# req = self . factory . get ( '/' , { #NEWLINE# #INDENT# 'page_size' : 2 , #NEWLINE# #UNINDENT# } ) #NEWLINE# data = self . api . get_data ( req ) #NEWLINE# eq_ ( data [ 'count' ] , 2 ) #NEWLINE# eq_ ( len ( data [ 'results' ] ) , 2 ) #NEWLINE# req = self . factory . get ( '/' , { #NEWLINE# #INDENT# 'page_size' : 1 , #NEWLINE# #UNINDENT# } ) #NEWLINE# data = self . api . get_data ( req ) #NEWLINE# eq_ ( data [ 'count' ] , 2 ) #NEWLINE# eq_ ( len ( u1 [ 'results' ] ) , 1 )