Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Private Member Functions
GenericSetup.tests.test_content.Test_globpattern Class Reference

List of all members.

Public Member Functions

def test_star
def test_simple
def test_multiple

Static Public Attributes

tuple NAMELIST = ('foo', 'bar', 'baz', 'bam', 'qux', 'quxx', 'quxxx')

Private Member Functions

def _checkResults

Detailed Description

Definition at line 699 of file test_content.py.


Member Function Documentation

def GenericSetup.tests.test_content.Test_globpattern._checkResults (   self,
  globpattern,
  namelist,
  expected 
) [private]

Definition at line 703 of file test_content.py.

00703 
00704     def _checkResults(self, globpattern, namelist, expected):
00705         from Products.GenericSetup.content import _globtest
00706         found = _globtest(globpattern, namelist)
00707         self.assertEqual(len(found), len(expected))
00708         for found_item, expected_item in zip(found, expected):
00709             self.assertEqual(found_item, expected_item)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 717 of file test_content.py.

00717 
00718     def test_multiple(self):
00719         self._checkResults('b*\n*x', self.NAMELIST,
00720                             [x for x in self.NAMELIST
00721                                 if x.startswith('b') or x.endswith('x')])
00722 

Here is the call graph for this function:

Definition at line 713 of file test_content.py.

00713 
00714     def test_simple(self):
00715         self._checkResults('b*', self.NAMELIST,
00716                             [x for x in self.NAMELIST if x.startswith('b')])

Here is the call graph for this function:

Definition at line 710 of file test_content.py.

00710 
00711     def test_star(self):
00712         self._checkResults('*', self.NAMELIST, self.NAMELIST)

Here is the call graph for this function:


Member Data Documentation

tuple GenericSetup.tests.test_content.Test_globpattern.NAMELIST = ('foo', 'bar', 'baz', 'bam', 'qux', 'quxx', 'quxxx') [static]

Definition at line 701 of file test_content.py.


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