def test_get_uhmac_nonascii_secret(): secret = os.urandom(32) uhmac = utils.get_uhmac(User(), secret) assert uhmac
def test_get_uhmac(): secret = 'abcdefghijklmnopqrstuvwxyz' uhmac = utils.get_uhmac(User(), secret) assert uhmac.startswith('3$')