Exemplo n.º 1
0
 def test_fielded_query(self):
     response = NaveESQuery._is_fielded_query("dc_subject.value:bloemen")
     assert response is not None
     assert response
     assert NaveESQuery._is_fielded_query("_id:123")
     assert NaveESQuery._is_fielded_query("one AND two")
     assert NaveESQuery._is_fielded_query("rdf.object.value:bloemen")
Exemplo n.º 2
0
 def test_normal_query_string(self):
     response = NaveESQuery._is_fielded_query("A query")
     assert response is not None
     assert not response
     assert not NaveESQuery._is_fielded_query("one and two")