Example #1
0
    def test_prepare_spec(self):
        backend = DjangoFilterBackend(Place.objects.all())
        spec = backend.prepare_spec(FilterSpec(['name'], 'exact', 'value'))

        assert spec == 'name__exact'