from tests.TestUsingMemoryBasedSheerka import TestUsingMemoryBasedSheerka class TestSheerkaNonRegMemory2(TestUsingMemoryBasedSheerka): def test_i_can_select_the_correct_concept_when_ambiguity(self): init = [ "def concept foo", "def concept x is a y pre is_question() as isa(x,y)", "def concept x is a foo pre is_question() as isinstance(x, foo)", ] sheerka = self.init_scenario(init) res = sheerka.evaluate_user_input("question(foo is a foo)") # assert len(res) == 1 # assert res[0].status # assert res[0].value