#NEWLINE# def test_filter_for_IN_lookup( self ) : #NEWLINE# #INDENT# f = Article . _meta . get_field ( 'author' ) #NEWLINE# ( result , params ) = FilterSet . filter_for_lookup ( f , 'in' ) #NEWLINE# self . assertTrue ( issubclass ( result , ModelChoiceFilter ) ) #NEWLINE# self . assertTrue ( issubclass ( result , BaseInFilter ) ) #NEWLINE# self . assertEqual ( params [ 'to_field_name' ] , 'id' )