Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
PluggableAuthService.utils.TestFileFinder Class Reference

List of all members.

Public Member Functions

def __init__
def visit

Public Attributes

 files

Detailed Description

Definition at line 93 of file utils.py.


Constructor & Destructor Documentation

Definition at line 95 of file utils.py.

00095 
00096     def __init__( self ):
00097         self.files = []


Member Function Documentation

def PluggableAuthService.utils.TestFileFinder.visit (   self,
  prefix,
  dir,
  files 
)
    Visitor for os.path.walk:  accumulates filenamse of unittests.

Definition at line 98 of file utils.py.

00098 
00099     def visit( self, prefix, dir, files ):
00100         """
00101             Visitor for os.path.walk:  accumulates filenamse of unittests.
00102         """
00103         #if dir[-5:] != "tests":
00104         #    return
00105 
00106         # ignore tests that aren't in packages
00107         if not "__init__.py" in files:
00108 
00109             if not files or files == ['CVS']:
00110                 return
00111 
00112             if 0 and __debug__: # XXX: don't care!
00113                 print "not a package", dir
00114 
00115             return
00116 
00117         for file in files:
00118 
00119             if file.startswith( prefix ) and file.endswith( ".py" ):
00120                 path = os.path.join(dir, file)
00121                 self.files.append(path)


Member Data Documentation

Definition at line 96 of file utils.py.


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