Back to index

enigmail  1.4.3
Public Member Functions | Public Attributes | Static Private Attributes
unit-expandlibs.TestCaseWithTmpDir Class Reference
Inheritance diagram for unit-expandlibs.TestCaseWithTmpDir:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def init
def cleanup
def touch
def tmpfile

Public Attributes

 tmpdir

Static Private Attributes

 __metaclass__ = ReplicateTests

Detailed Description

Definition at line 121 of file unit-expandlibs.py.


Member Function Documentation

def unit-expandlibs.TestCaseWithTmpDir.cleanup (   self)

Definition at line 126 of file unit-expandlibs.py.

00126 
00127     def cleanup(self):
00128         rmtree(self.tmpdir)

def unit-expandlibs.TestCaseWithTmpDir.init (   self)

Reimplemented in unit-expandlibs.TestExpandInit.

Definition at line 123 of file unit-expandlibs.py.

00123 
00124     def init(self):
00125         self.tmpdir = os.path.abspath(mkdtemp(dir=os.curdir))

def unit-expandlibs.TestCaseWithTmpDir.tmpfile (   self,
  args 
)

Definition at line 133 of file unit-expandlibs.py.

00133 
00134     def tmpfile(self, *args):
00135         return os.path.join(self.tmpdir, *args)

Here is the caller graph for this function:

def unit-expandlibs.TestCaseWithTmpDir.touch (   self,
  files 
)

Definition at line 129 of file unit-expandlibs.py.

00129 
00130     def touch(self, files):
00131         for f in files:
00132             open(f, 'w').close()

Here is the caller graph for this function:


Member Data Documentation

unit-expandlibs.TestCaseWithTmpDir.__metaclass__ = ReplicateTests [static, private]

Definition at line 122 of file unit-expandlibs.py.

unit-expandlibs.TestCaseWithTmpDir.tmpdir

Definition at line 124 of file unit-expandlibs.py.


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