Exemplo n.º 1
0
 def test_target(self):
     qphfile = qph.QphFile()
     qphunit = qphfile.addsourceunit("Concept")
     qphunit.target = "Konsep"
     newfile = qph.QphFile.parsestring(bytes(qphfile))
     print(bytes(qphfile))
     assert newfile.findunit("Concept").target == "Konsep"
Exemplo n.º 2
0
 def test_source(self):
     qphfile = qph.QphFile()
     qphunit = qphfile.addsourceunit("Concept")
     qphunit.source = "Term"
     newfile = qph.QphFile.parsestring(bytes(qphfile))
     print(bytes(qphfile))
     assert newfile.findunit("Concept") is None
     assert newfile.findunit("Term") is not None