def test_get_es_filter_fields(self):
    es_range_filter_fields = (ESFieldFilter('skills'), ESFieldFilter('active', 'is_active'))
    view = self.create_view(es_range_filter_fields)
    result = self.backend.get_es_range_filter_fields(view)
    assert (result == es_range_filter_fields)
def test_get_es_filter_fields(self):
    es_range_filter_fields = (ESFieldFilter('skills'), ESFieldFilter('active', 'is_active'))
    view = self.create_view(es_range_filter_fields)
    result = self.backend.get_es_range_filter_fields(view)
    assert (result == es_range_filter_fields)