Exemplo n.º 1
0
def createFaber(name=None, wallet=None, basedirpath=None, port=None):
    return createAgent(FaberAgent,
                       name or "Faber College",
                       wallet or buildFaberWallet(),
                       basedirpath,
                       port,
                       clientClass=TestClient)
Exemplo n.º 2
0
    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))
Exemplo n.º 3
0
def faberWallet():
    return buildFaberWallet()
Exemplo n.º 4
0
def faberWallet():
    return buildFaberWallet()