Back to index

python3.2  3.2.2
Public Member Functions
test.test_os.URandomTests Class Reference

List of all members.

Public Member Functions

def test_urandom

Detailed Description

Definition at line 594 of file test_os.py.


Member Function Documentation

Definition at line 595 of file test_os.py.

00595 
00596     def test_urandom(self):
00597         try:
00598             self.assertEqual(len(os.urandom(1)), 1)
00599             self.assertEqual(len(os.urandom(10)), 10)
00600             self.assertEqual(len(os.urandom(100)), 100)
00601             self.assertEqual(len(os.urandom(1000)), 1000)
00602         except NotImplementedError:
00603             pass
00604 
@contextlib.contextmanager

Here is the call graph for this function:


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