Created
November 27, 2017 15:53
-
-
Save ktechmidas/68dee62557aab05382ec5b1780f161a7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================================================================================ FAILURES ================================================================================================= | |
_______________________________________________________________________________________________ test_dashd ________________________________________________________________________________________________ | |
def test_dashd(): | |
config_text = DashConfig.slurp_config_file(config.dash_conf) | |
network = 'mainnet' | |
is_testnet = False | |
genesis_hash = u'00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6' | |
for line in config_text.split("\n"): | |
if line.startswith('testnet=1'): | |
print 'testnet' | |
network = 'testnet' | |
is_testnet = True | |
genesis_hash = u'00000bafbc94add76cb75e2ec92894837288a481e5c005f6563d91623bf8bc2c' | |
creds = DashConfig.get_rpc_creds(config_text, network) | |
dashd = DashDaemon(**creds) | |
assert dashd.rpc_command is not None | |
assert hasattr(dashd, 'rpc_connection') | |
# Dash testnet block 0 hash == 00000bafbc94add76cb75e2ec92894837288a481e5c005f6563d91623bf8bc2c | |
# test commands without arguments | |
> info = dashd.rpc_command('getinfo') | |
test/integration/test_jsonrpc.py:36: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
lib/dashd.py:42: in rpc_command | |
return self.rpc_connection.__getattr__(params[0])(*params[1:]) | |
venv/local/lib/python2.7/site-packages/bitcoinrpc/authproxy.py:139: in __call__ | |
response = self._get_response() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <bitcoinrpc.authproxy.AuthServiceProxy object at 0x7f13c8715550> | |
def _get_response(self): | |
http_response = self.__conn.getresponse() | |
if http_response is None: | |
raise JSONRPCException({ | |
'code': -342, 'message': 'missing HTTP response from server'}) | |
content_type = http_response.getheader('Content-Type') | |
if content_type != 'application/json': | |
raise JSONRPCException({ | |
> 'code': -342, 'message': 'non-JSON HTTP response with \'%i %s\' from server' % (http_response.status, http_response.reason)}) | |
E JSONRPCException: -342: non-JSON HTTP response with '401 Unauthorized' from server | |
venv/local/lib/python2.7/site-packages/bitcoinrpc/authproxy.py:187: JSONRPCException | |
------------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------------- | |
testnet | |
=================================================================================== 1 failed, 22 passed in 0.83 seconds =================================================================================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment