#NEWLINE# def test_symmetrical_selfref_m2m_field( self ) : #NEWLINE# #INDENT# f = Node . _meta . get_field ( 'adjacents' ) #NEWLINE# result = FilterSet . filter_for_field ( self , 'adjacents' ) #NEWLINE# self . assertIsInstance ( result , ModelMultipleChoiceFilter ) #NEWLINE# self . assertEqual ( result . name , 'adjacents' ) #NEWLINE# self . assertTrue ( ( 'queryset' in result . extra ) ) #NEWLINE# self . assertIsNotNone ( result . extra [ 'queryset' ] ) #NEWLINE# self . assertEqual ( result . extra [ 'queryset' ] . model , Node )