MCPcopy Index your code
hub / github.com/python/cpython / test_sha_algorithm

Method test_sha_algorithm

Lib/test/test_urllib2.py:2005–2008  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2003
2004 @skip_libssl_fips_mode
2005 def test_sha_algorithm(self):
2006 H, KD = self.handler.get_algorithm_impls('SHA')
2007 self.assertEqual(H("foo"), "0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33")
2008 self.assertEqual(KD("foo", "bar"), "54dcbe67d21d5eb39493d46d89ae1f412d3bd6de")
2009
2010 @skip_libssl_fips_mode
2011 def test_sha256_algorithm(self):

Callers

nothing calls this directly

Calls 3

get_algorithm_implsMethod · 0.80
HClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected