Back to index

python3.2  3.2.2
Public Member Functions
ctypes.test.test_bitfields.C_Test Class Reference

for n in "ABCDEFGHIMNOPQRS": print n, hex(getattr(BITS, n).size), getattr(BITS, n).offset More...

List of all members.

Public Member Functions

def test_ints
def test_shorts

Detailed Description

for n in "ABCDEFGHIMNOPQRS": print n, hex(getattr(BITS, n).size), getattr(BITS, n).offset

Definition at line 33 of file test_bitfields.py.


Member Function Documentation

Definition at line 35 of file test_bitfields.py.

00035 
00036     def test_ints(self):
00037         for i in range(512):
00038             for name in "ABCDEFGHI":
00039                 b = BITS()
00040                 setattr(b, name, i)
00041                 self.assertEqual(getattr(b, name), func(byref(b), name.encode('ascii')))

Here is the call graph for this function:

Definition at line 42 of file test_bitfields.py.

00042 
00043     def test_shorts(self):
00044         for i in range(256):
00045             for name in "MNOPQRS":
00046                 b = BITS()
00047                 setattr(b, name, i)
00048                 self.assertEqual(getattr(b, name), func(byref(b), name.encode('ascii')))

Here is the call graph for this function:


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