def test_sublimate1(verbose=False): res = BismuthUtil.sublimate("Test!", 3) if verbose: print(res) res2 = BismuthUtil.condensate(res['parts']) if verbose: print(res2) assert res2["key"] == "Test!"
def test_sublimate3(verbose=False): # Test with a hex String res = BismuthUtil.sublimate("feff0102", 4) if verbose: print(res) res2 = BismuthUtil.condensate(res['parts']) if verbose: print(res2) # No case sensitivity assert res2["key"].lower() == "feff0102"
def test_sublimate2(verbose=False): res = BismuthUtil.sublimate( "Test of a longer string, that could be an ECDSA privkey for instance", 10) if verbose: print(res) res2 = BismuthUtil.condensate(res['parts']) if verbose: print(res2) assert res2[ "key"] == "Test of a longer string, that could be an ECDSA privkey for instance"