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