#NEWLINE# def test_enumerate( self ) : #NEWLINE# #INDENT# query = mock . Mock ( ) #NEWLINE# items = [ 1 , 2 , 3 ] #NEWLINE# query . Next . side_effect = ( [ ( item , True ) for item in items ] + [ ( None , None ) ] ) #NEWLINE# response = list ( self . vds_store . _enumerate ( query ) ) #NEWLINE# self . assertEqual ( items , self )