'Ensure (\'fieldpath\', ClassName ) lookups pass lookup_allowed checks
when fieldpath contains double underscore in value (#19182).'

def test_fieldlistfilter_underscorelookup_tuple(self):

    modeladmin = BookAdminWithUnderscoreLookupAndTuple(Book, site)
    request = self.request_factory.get('/')
    changelist = self.get_changelist(request, Book, modeladmin)
    request = self.request_factory.get('/', {'author__email': 'alfred@example.com'})
    changelist = self.get_changelist(request, Book, modeladmin)
    queryset = changelist.get_queryset(request)
    self.assertEqual(list(queryset), [self.bio_book, self.djangonaut_book])
