示例#1
0
def test_attributes():
    assert pysha.digest_size == 20
    assert pysha.digestsize == 20
    assert pysha.blocksize == 1
    assert pysha.new().digest_size == 20
    assert pysha.new().digestsize == 20
示例#2
0
 def check(self, data, digest):
     computed = pysha.new(data).hexdigest()
     assert computed == digest
示例#3
0
 def check(self, data, digest):
     computed = pysha.new(data).hexdigest()
     assert computed == digest
示例#4
0
def test_attributes():
    assert pysha.digest_size == 20
    assert pysha.digestsize == 20
    assert pysha.blocksize == 1
    assert pysha.new().digest_size == 20
    assert pysha.new().digestsize == 20