#NEWLINE# def qs( self , count ) : #NEWLINE# #INDENT# 'Returns mock queryset with given count.' #NEWLINE# qs = Mock ( ) #NEWLINE# qs . count . return_value = count #NEWLINE# qs . empty . return_value = [ ] #NEWLINE# qs . __getitem__ = Mock ( ) #NEWLINE# return qs