def test_WrongJSONFormat_with_loadFromFile(): with pytest.raises(WrongJSONFormat): MerkleTree.loadFromFile( os.path.join(os.path.dirname(__file__), 'objects', 'sample.json'))
def test_loadFromFile(): assert tree.serialize() == MerkleTree.loadFromFile(export_path).serialize()