Beispiel #1
0
 async def do07BAddNodesSimpleProp(self, core: s_cortex.Cortex, prox: s_telepath.Proxy) -> int:
     '''
     Add simple node with a single non-form secondary prop
     '''
     count = await acount(prox.addNodes(self.testdata.asns2prop))
     assert count == self.workfactor
     return count
Beispiel #2
0
 async def do07DAddNodesFormPropExists(self, core: s_cortex.Cortex, prox: s_telepath.Proxy) -> int:
     '''
     Add simple node with a single form secondary prop and that secondary prop form already exists
     '''
     count = await acount(prox.addNodes(self.testdata.asns2formexist))
     assert count == self.workfactor
     return count
Beispiel #3
0
 async def do07EAddNodesPresent(self, core: s_cortex.Cortex, prox: s_telepath.Proxy) -> int:
     count = await acount(prox.addNodes(self.testdata.asns))
     assert count == self.workfactor
     return count
Beispiel #4
0
 async def do07AAddNodesSync(self, core: s_cortex.Cortex, prox: s_telepath.Proxy) -> int:
     count = await acount(prox.addNodes(self.testdata.asns2))
     core.view.layers[0].layrslab.lenv.sync()
     assert count == self.workfactor
     return count