#NEWLINE# def test_two_characters_long_field( self ) : #NEWLINE# #INDENT# '\n        list_filter works with two-characters long field names (#16080).\n        ' #NEWLINE# modeladmin = BookAdmin ( Book , site ) #NEWLINE# request = self . request_factory . get ( '/' , { #NEWLINE# #INDENT# 'no' : '207' , #NEWLINE# #UNINDENT# } ) #NEWLINE# changelist = self . get_changelist ( request , Book , modeladmin ) #NEWLINE# queryset = changelist . get_queryset ( request ) #NEWLINE# self . assertEqual ( list ( queryset ) , [ self . bio_book ] ) #NEWLINE# filterspec = changelist . get_filters ( changelist ) [ 0 ] [ ( - 1 ) ] #NEWLINE# self . assertEqual ( force_text ( filterspec . title ) , 'number' ) #NEWLINE# choices = list ( filterspec . choices ( changelist ) ) #NEWLINE# self . assertEqual ( choices [ 2 ] [ 'selected' ] , True ) #NEWLINE# self . assertEqual ( choices [ 2 ] [ 'query_string' ] , '?no=207' )