#NEWLINE# def test_reverse_fk_relationship( self ) : #NEWLINE# #INDENT# f = User . _meta . get_field ( 'comments' ) #NEWLINE# result = FilterSet . filter_for_reverse_field ( f , 'comments' ) #NEWLINE# self . assertIsInstance ( result , ModelMultipleChoiceFilter ) #NEWLINE# self . assertEqual ( result . name , 'comments' ) #NEWLINE# self . assertTrue ( ( 'queryset' in result . extra ) ) #NEWLINE# self . assertIsNotNone ( result . extra [ 'queryset' ] ) #NEWLINE# self . assertEqual ( result . extra [ 'queryset' ] . model , Comment )