I have the following code need to test:
def methodToTest(self, context): try: someRpcMethod() # <------ raise RpcError except RpcError as