def createFaber(name=None, wallet=None, basedirpath=None, port=None): return createAgent(FaberAgent, name or "Faber College", wallet or buildFaberWallet(), basedirpath, port, clientClass=TestClient)
def getAttrs(self): return self._attrs def getLinkNameByInternalId(self, internalId): return self._attrs[internalId]._vals["student_name"] def getSchemaKeysToBeGenerated(self): return [SchemaKey("Transcript", "1.2", self.wallet.defaultId)] def createFaber(name=None, wallet=None, basedirpath=None, port=None): return createAgent(FaberAgent, name or "Faber College", wallet or buildFaberWallet(), basedirpath, port, clientClass=TestClient) if __name__ == "__main__": port = 5555 TestWalletedAgent.createAndRunAgent( "Faber College", agentClass=FaberAgent, wallet=buildFaberWallet(), basedirpath=None, port=port, looper=None, clientClass=TestClient, cliAgentCreator=lambda: createFaber(port=port))
def faberWallet(): return buildFaberWallet()
def faberWallet(): return buildFaberWallet()