#NEWLINE# def test_that_marker_is_read( self ) : #NEWLINE# #INDENT# paginator = Paginator ( TestUser . objects . all ( ) . order_by ( 'first_name' ) , 1 , readahead = 1 ) #NEWLINE# paginator . page ( 2 ) #NEWLINE# with sleuth . watch ( 'djangae.contrib.pagination.paginator._get_marker' ) as get_marker : #NEWLINE# #INDENT# paginator . page ( 4 ) #NEWLINE# self . assertTrue ( get_marker . called ) #NEWLINE# self . assertIsNotNone ( get_marker . call_returns [ 0 ] [ 0 ] ) #NEWLINE# self . assertEqual ( 1 , get_marker . call_returns [ 0 ] [ 1 ] )