          terms = filters.SearchFilter().get_search_terms(request)
  
          assert terms == ['asdf']
  
      @pytest.mark.skipif(django.VERSION[:2] < (2, 2), reason="requires django 2.2 or higher")
      def test_search_field_with_additional_transforms(self):
          from django.test.utils import register_lookup
  
          class SearchListView(generics.ListAPIView):
              queryset = SearchFilterModel.objects.all()
 
</s> remove             assert expected[idx] == get_regex_pattern(self.urls[idx])
 </s> add             assert expected[idx] == self.urls[idx].pattern.regex.pattern </s> remove             assert expected[idx] == get_regex_pattern(self.urls[idx])
 </s> add             assert expected[idx] == self.urls[idx].pattern.regex.pattern </s> remove             assert expected[idx] == get_regex_pattern(self.urls[idx])
 </s> add             assert expected[idx] == self.urls[idx].pattern.regex.pattern </s> remove         detail_url_pattern = get_regex_pattern(detail_route)
        assert '^notes/(?P<text>' in detail_url_pattern
 </s> add         assert '^notes/(?P<text>' in detail_route.pattern.regex.pattern </s> remove         detail_url_pattern = get_regex_pattern(detail_route)
        assert '<uuid>' in detail_url_pattern
 </s> add         assert '<uuid>' in detail_route.pattern.regex.pattern
          terms = filters.SearchFilter().get_search_terms(request)
  
          assert terms == ['asdf']
  

      def test_search_field_with_additional_transforms(self):
          from django.test.utils import register_lookup
  
          class SearchListView(generics.ListAPIView):
              queryset = SearchFilterModel.objects.all()
keep keep keep keep replace keep keep keep keep keep
 Drop all compat support to Django < 2 urls (#7337) 
tests/test_filters.py