Back to index

python3.2  3.2.2
Public Member Functions
test.test_hmac.ConstructorTestCase Class Reference

List of all members.

Public Member Functions

def test_normal
def test_withtext
def test_withmodule

Detailed Description

Definition at line 227 of file test_hmac.py.


Member Function Documentation

Definition at line 229 of file test_hmac.py.

00229 
00230     def test_normal(self):
00231         # Standard constructor call.
00232         failed = 0
00233         try:
00234             h = hmac.HMAC(b"key")
00235         except:
00236             self.fail("Standard constructor call raised exception.")

Here is the call graph for this function:

Definition at line 244 of file test_hmac.py.

00244 
00245     def test_withmodule(self):
00246         # Constructor call with text and digest module.
00247         try:
00248             h = hmac.HMAC(b"key", b"", hashlib.sha1)
00249         except:
00250             self.fail("Constructor call with hashlib.sha1 raised exception.")

Here is the call graph for this function:

Definition at line 237 of file test_hmac.py.

00237 
00238     def test_withtext(self):
00239         # Constructor call with text.
00240         try:
00241             h = hmac.HMAC(b"key", b"hash this!")
00242         except:
00243             self.fail("Constructor call with text argument raised exception.")

Here is the call graph for this function:


The documentation for this class was generated from the following file: