Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Static Public Attributes
test_pysupport.TestImportNameFromPlugin Class Reference
Inheritance diagram for test_pysupport.TestImportNameFromPlugin:
Inheritance graph
Collaboration diagram for test_pysupport.TestImportNameFromPlugin:
Collaboration graph

List of all members.

Public Member Functions

def setup_method
def checkPackage
def pluginExists
def pluginFilePath

Public Attributes


Static Public Attributes

string name = 'Parser'

Detailed Description

Base class for import plugin tests 

Definition at line 42 of file

Member Function Documentation

Definition at line 52 of file

00053     def checkPackage(self, path):
00054         for item in (path, os.path.join(path, '')):
00055             if not os.path.exists(item):
00056                 py.test.skip("Missing or wrong permissions: %s" % item)

Definition at line 57 of file

00058     def pluginExists(self):
00059         return (os.path.exists(self.pluginFilePath('.py')) or
00060                 os.path.exists(self.pluginFilePath('.pyc')))

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 61 of file

00062     def pluginFilePath(self, suffix):
00063         return os.path.join(self.pluginDirectory, self.plugin + suffix)

Here is the caller graph for this function:

Check for valid plugin package 

Definition at line 47 of file

00048     def setup_method(self, method):
00049         """ Check for valid plugin package """
00050         self.pluginDirectory = os.path.join(self.request.cfg.data_dir, 'plugin', 'parser')
00051         self.checkPackage(self.pluginDirectory)

Member Data Documentation

Definition at line 45 of file

Definition at line 49 of file

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