today i got this error by testing sentinel:
alex@unassigned-hostname:~/sentinel$ ./venv/bin/py.test ./test
======================================================= test session starts ========================================================
platform linux2 -- Python 2.7.12, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
rootdir: /home/alex/sentinel, inifile:
collected 20 items
test/integration/test_jsonrpc.py F
test/unit/test_models.py ..
test/unit/test_monoeci_config.py .
test/unit/test_monoecid_data_shims.py ..
test/unit/test_monoeciy_things.py .....
test/unit/test_submit_command.py .
test/unit/models/test_proposals.py ...
test/unit/models/test_superblocks.py .....
============================================================= FAILURES =============================================================
__________________________________________________________ test_monoecid ___________________________________________________________
def test_monoecid():
config_text = monoeciConfig.slurp_config_file(config.monoeci_conf)
network = 'mainnet'
is_testnet = False
genesis_hash = u'0000005be1eb05b05fb45ae38ee9c1441514a65343cd146100a574de4278f1a3'
for line in config_text.split("\n"):
if line.startswith('testnet=1'):
network = 'testnet'
is_testnet = True
genesis_hash = u'000008f18ad6913eed878632efbb83909272d493e5c065789330eb23ab65b5cf'
creds = monoeciConfig.get_rpc_creds(config_text, network)
monoecid = monoeciDaemon(**creds)
assert monoecid.rpc_command is not None
> assert hasattr(monoecid, 'rpc_connection')
E assert False
E + where False = hasattr(<monoecid.monoeciDaemon instance at 0x7fab16693e18>, 'rpc_connection')
test/integration/test_jsonrpc.py:30: AssertionError
=============================================== 1 failed, 19 passed in 0.46 seconds ================================================
alex@unassigned-hostname:~/sentinel$
SOLVED: set shorter rpc password in monoeci.conf