def METHOD_NAME(self):
    request = self.request_factory.get('/api/bar')
    bvs = BarViewSet()
    request.query_params = QueryDict(urlencode({'date__year': 2015}))
    bvs.request = request
    self.assertEqual(len(self.lookup_filter.filter_queryset(
        request, Bar.objects.all(), bvs)
    ), 1)
    # Failed filter
    request.query_params = QueryDict(urlencode({'date__istartswith': 10}))
    self.assertEqual(len(self.lookup_filter.filter_queryset(
        request, Bar.objects.all(), bvs)
    ), 4)