Ejemplo n.º 1
0
def test_WrongJSONFormat_with_loadFromFile():

    with pytest.raises(WrongJSONFormat):
        MerkleTree.loadFromFile(
            os.path.join(os.path.dirname(__file__), 'objects', 'sample.json'))
Ejemplo n.º 2
0
def test_loadFromFile():

    assert tree.serialize() == MerkleTree.loadFromFile(export_path).serialize()