Changeset View
Changeset View
Standalone View
Standalone View
test/functional/interface_rpc.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2018-2019 The Bitcoin Core developers | # Copyright (c) 2018-2019 The Bitcoin Core developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
"""Tests some generic aspects of the RPC interface.""" | """Tests some generic aspects of the RPC interface.""" | ||||
import os | import os | ||||
from test_framework.authproxy import JSONRPCException | from test_framework.authproxy import JSONRPCException | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import assert_equal, assert_greater_than_or_equal | from test_framework.util import assert_equal, assert_greater_than_or_equal | ||||
def expect_http_status(expected_http_status, expected_rpc_code, | def expect_http_status(expected_http_status, expected_rpc_code, | ||||
fcn, *args): | fcn, *args): | ||||
try: | try: | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |