'A lookup_allowed allows a parameter whose field lookup doesn\'t exist.
(#21129).'

def test_lookup_allowed_allows_nonexistent_lookup(self):

    class BandAdmin(ModelAdmin, ):
        fields = ['name']
    ma = BandAdmin(Band, self.site)
    self.assertTrue(ma.lookup_allowed('name__nonexistent', 'test_value'))
