Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_funcattrs.FuncAttrsTest Class Reference
Inheritance diagram for test.test_funcattrs.FuncAttrsTest:
Inheritance graph

List of all members.

Public Member Functions

def setUp
def cannot_set_attr

Public Attributes


Detailed Description

Definition at line 5 of file

Member Function Documentation

def test.test_funcattrs.FuncAttrsTest.cannot_set_attr (   self,

Definition at line 16 of file

00017     def cannot_set_attr(self, obj, name, value, exceptions):
00018         try:
00019             setattr(obj, name, value)
00020         except exceptions:
00021             pass
00022         else:
00023   "shouldn't be able to set %s to %r" % (name, value))
00024         try:
00025             delattr(obj, name)
00026         except exceptions:
00027             pass
00028         else:
00029   "shouldn't be able to del %s" % name)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 6 of file

00007     def setUp(self):
00008         class F:
00009             def a(self):
00010                 pass
00011         def b():
00012             return 3
00013 = F()
00014         self.F = F
00015         self.b = b

Here is the caller graph for this function:

Member Data Documentation

Definition at line 14 of file

Definition at line 13 of file

Definition at line 12 of file

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