Changeset View
Changeset View
Standalone View
Standalone View
test/functional/interface_rest.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2014-2016 The Bitcoin Core developers | # Copyright (c) 2014-2016 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. | ||||
"""Test the REST API.""" | |||||
# | |||||
# Test REST interface | |||||
# | |||||
from codecs import encode | from codecs import encode | ||||
from decimal import Decimal | from decimal import Decimal | ||||
import http.client | import http.client | ||||
from io import BytesIO | from io import BytesIO | ||||
import json | import json | ||||
from struct import pack, unpack | from struct import pack, unpack | ||||
import urllib.parse | import urllib.parse | ||||
▲ Show 20 Lines • Show All 382 Lines • Show Last 20 Lines |