Back to index

plone3  3.1.7
Public Member Functions
GenericSetup.tests.test_utils.UtilsTests Class Reference

List of all members.

Public Member Functions

def test__getDottedName_simple
def test__getDottedName_string
def test__getDottedName_unicode
def test__getDottedName_class
def test__getDottedName_inst
def test__getDottedName_noname

Detailed Description

Definition at line 201 of file test_utils.py.


Member Function Documentation

Definition at line 223 of file test_utils.py.

00223 
00224     def test__getDottedName_class( self ):
00225 
00226         from Products.GenericSetup.utils import _getDottedName
00227 
00228         self.assertEqual( _getDottedName( Whatever ), _WHATEVER_NAME )

Here is the call graph for this function:

Definition at line 229 of file test_utils.py.

00229 
00230     def test__getDottedName_inst( self ):
00231 
00232         from Products.GenericSetup.utils import _getDottedName
00233 
00234         self.assertEqual( _getDottedName( whatever_inst )
00235                         , _WHATEVER_INST_NAME )

Here is the call graph for this function:

Definition at line 236 of file test_utils.py.

00236 
00237     def test__getDottedName_noname( self ):
00238 
00239         from Products.GenericSetup.utils import _getDottedName
00240 
00241         class Doh:
00242             pass
00243 
00244         doh = Doh()
00245         self.assertRaises( ValueError, _getDottedName, doh )
00246 

Definition at line 203 of file test_utils.py.

00203 
00204     def test__getDottedName_simple( self ):
00205 
00206         from Products.GenericSetup.utils import _getDottedName
00207 
00208         self.assertEqual( _getDottedName( _testFunc ), _TEST_FUNC_NAME )

Here is the call graph for this function:

Definition at line 209 of file test_utils.py.

00209 
00210     def test__getDottedName_string( self ):
00211 
00212         from Products.GenericSetup.utils import _getDottedName
00213 
00214         self.assertEqual( _getDottedName( _TEST_FUNC_NAME ), _TEST_FUNC_NAME )

Here is the call graph for this function:

Definition at line 215 of file test_utils.py.

00215 
00216     def test__getDottedName_unicode( self ):
00217 
00218         from Products.GenericSetup.utils import _getDottedName
00219 
00220         dotted = u'%s' % _TEST_FUNC_NAME
00221         self.assertEqual( _getDottedName( dotted ), _TEST_FUNC_NAME )
00222         self.assertEqual( type( _getDottedName( dotted ) ), str )

Here is the call graph for this function:


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