Searched refs:myhashfunc (Results 1 – 1 of 1) sorted by relevance
59 myhashfunc = hashlib.md562 hashfunc = myhashfunc #hashlib.md5 #lambda cls,msg: hmac.new('mysecret',msg)77 expected = myhashfunc('bar').hexdigest() #hmac.new('mysecret','bar').hexdigest()101 myhashfunc=lambda msg: hmac.new('mysecret', msg) function102 cls = self.test_model(hashfunc=myhashfunc)105 expected = myhashfunc('hello').hexdigest()