Skip to content

Commit

Permalink
add test case for valid client URL (#389)
Browse files Browse the repository at this point in the history
* add test case for valid client URL
  • Loading branch information
khancode committed May 13, 2022
1 parent 5acfc99 commit 44b71c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/unit/clients/test_json_rpc_client.py
Expand Up @@ -11,6 +11,12 @@
class TestJsonRpcClient(TestCase):
"""Test json_rpc_client."""

def test_json_rpc_client_valid_url(self: TestJsonRpcClient) -> None:
# Valid URL
JSON_RPC_URL = "https://s.altnet.rippletest.net:51234/"
client = JsonRpcClient(JSON_RPC_URL)
client.request(ServerInfo())

def test_json_rpc_client_invalid_url(self: TestJsonRpcClient) -> None:
# Invalid URL
JSON_RPC_URL = "https://s2.ripple.com:51233/"
Expand Down

0 comments on commit 44b71c4

Please sign in to comment.