Onionr/onionr/runtests/inserttest.py

13 lines
299 B
Python
Raw Normal View History

2019-10-07 05:51:30 +00:00
import os
import onionrblocks
import logger
import coredb
def insert_bin_test(testmanager):
data = os.urandom(32)
b_hash = onionrblocks.insert(data, )
if not b_hash in coredb.blockmetadb.get_block_list():
logger.error(str(b_hash) + 'is not in bl')
raise ValueError