#NEWLINE# def testAll( self ) : #NEWLINE# #INDENT# 'Test All().' #NEWLINE# mock_model = self . mox . CreateMockAnything ( ) #NEWLINE# mock_query = self . mox . CreateMockAnything ( ) #NEWLINE# self . _StubGetModelClass ( ) #NEWLINE# ads = self . _GetAds ( ) #NEWLINE# ads . model = mock_model #NEWLINE# sessions = [ 1 , 2 , 3 ] #NEWLINE# mock_model . all ( ) . AndReturn ( mock_query ) #NEWLINE# self . mox . StubOutWithMock ( gaeserver . gae_util , 'QueryIterator' ) #NEWLINE# gaeserver . gae_util . QueryIterator ( mock_query , step = 100 ) . AndReturn ( sessions ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# output = [ ] #NEWLINE# for i in ads . All ( ) : #NEWLINE# #INDENT# output . append ( i ) #NEWLINE# #UNINDENT# self . assertEqual ( output , sessions ) #NEWLINE# self . mox . VerifyAll ( )