예제 #1
0
def test_WrongJSONFormat_with_loadFromFile():

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

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