[5d0d34]: / Test / backup / test.py  Maximize  Restore  History

Download this file

12 lines (9 with data), 304 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# test.py
import os.path
from pyke import knowledge_engine
def test():
engine = knowledge_engine.engine(os.path.dirname(__file__),
'Test.backup.compiled_krb')
engine.activate('backup')
(ans,), plan = engine.prove_1('backup', 'top', (), 1)
print ans