def class_enclosing_func():
import tests.support.pinspect_support_module_3<EOL>class ClosureClass(object):<EOL><INDENT>"""<STR_LIT>"""<EOL>def __init__(self):  <EOL><INDENT>"""<STR_LIT>"""<EOL>self.obj = None<EOL><DEDENT>def get_obj(self):<EOL><INDENT>"""<STR_LIT>"""<EOL>return self.obj<EOL><DEDENT>def set_obj(self, obj):<EOL><INDENT>"""<STR_LIT>"""<EOL>self.obj = obj<EOL><DEDENT>def sub_enclosure_method(self):  <EOL><INDENT>"""<STR_LIT>"""<EOL>class SubClosureClass(object):<EOL><INDENT>"""<STR_LIT>"""<EOL>def __init__(self):  <EOL><INDENT>"""<STR_LIT>"""<EOL>self.subobj = None<EOL><DEDENT><DEDENT>return SubClosureClass<EOL><DEDENT>mobj = sys.modules["<STR_LIT>"]<EOL>obj = property(<EOL>mobj.getter_func_for_closure_class,<EOL>set_obj,<EOL>tests.support.pinspect_support_module_3.deleter,<EOL>)<EOL><DEDENT>return ClosureClass<EOL>
Test function to see if classes within enclosures are detected.