#NEWLINE# def test_filtered_by_productversion( self ) : #NEWLINE# #INDENT# "If filtered by productversion, doesn't filter by latest=True." #NEWLINE# pv = self . F . ProductVersionFactory . create ( ) #NEWLINE# fs = self . bound ( MultiValueDict ( { #NEWLINE# #INDENT# 'filter-productversion' : [ str ( pv . id ) ] , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# qs = Mock ( ) #NEWLINE# qs2 = fs . filter ( qs ) #NEWLINE# qs . filter . assert_called_with ( productversion__in = [ pv . id ] ) #NEWLINE# self . assertIs ( qs2 , qs . filter . return_value . distinct . return_value )