Exemplo n.º 1
0
 def test_error_handling_appbase(self):
     rpc = SteemNodeRPC(urls=self.nodes_appbase,
                        num_retries=2,
                        num_retries_call=3)
     with self.assertRaises(exceptions.NoMethodWithName):
         rpc.get_wrong_command()
     with self.assertRaises(exceptions.NoApiWithName):
         rpc.get_block({"block_num": 1}, api="wrong_api")
Exemplo n.º 2
0
 def test_error_handling(self):
     rpc = SteemNodeRPC(urls=self.nodes, num_retries=2, num_retries_call=3)
     with self.assertRaises(
         exceptions.NoMethodWithName
     ):
         rpc.get_wrong_command()
     with self.assertRaises(
         exceptions.UnhandledRPCError
     ):
         rpc.get_accounts("test")