Example #1
0
class Transaction(object):
    def __init__(self):
        # If we want we can force to use another service name (testing multiple services for example)
        if len(sys.argv) > 2:
            self.client = RPCClientSelector(sys.argv[2])
        else:
            self.client = RPCClientSelector("Framework/User")
        return

    def run(self):
        assert self.client.ping()["OK"], "error"
def test_ping():
    service = RPCClient("Framework/User")

    assert service.ping()["OK"]