def test_get_valid_fields_without_es_ordering_fields(self):
    view = self.create_view(None)
    valid_fields = []
    self.backend.get_default_valid_fields = (lambda q, v: valid_fields)
    result = self.backend.get_valid_fields([], view)
    assert (result == valid_fields)
def test_get_valid_fields_without_es_ordering_fields(self):
    view = self.create_view(None)
    valid_fields = []
    self.backend.get_default_valid_fields = (lambda q, v: valid_fields)
    result = self.backend.get_valid_fields([], view)
    assert (result == valid_fields)