Back to index

plone3  3.1.7
Public Member Functions
PluggableAuthService.tests.test_utils.UtilityTests Class Reference

List of all members.

Public Member Functions

def test_createViewName
def test_createViewName_no_user_handle
def test_createViewName_latin1_umlaut_in_method
def test_createViewName_utf8_umlaut_in_method
def test_createViewName_unicode_umlaut_in_method
def test_createViewName_latin1_umlaut_in_handle
def test_createViewName_utf8_umlaut_in_handle
def test_createViewName_unicode_umlaut_in_handle
def test_createKeywords
def test_createKeywords_multiple
def test_createKeywords_latin1_umlaut
def test_createKeywords_utf8_umlaut
def test_createKeywords_unicode_umlaut
def test_createKeywords_utf16_umlaut
def test_createKeywords_unicode_chinese

Detailed Description

Definition at line 22 of file test_utils.py.


Member Function Documentation

Definition at line 48 of file test_utils.py.

00048 
00049     def test_createKeywords(self):
00050         _ITEMS = (('foo', 'bar'),)
00051         hashed = _createHashedValue(_ITEMS)
00052         self.assertEqual(createKeywords(foo='bar'),
00053                          {'keywords': hashed})

Here is the call graph for this function:

Definition at line 60 of file test_utils.py.

00060 
00061     def test_createKeywords_latin1_umlaut(self):
00062         _ITEMS = (('foo', 'bar'), ('baz', 'M\344dchen'))
00063         hashed = _createHashedValue(_ITEMS)
00064         self.assertEqual(createKeywords(foo='bar', baz='M\344dchen'),
00065                          {'keywords': hashed})

Here is the call graph for this function:

Definition at line 54 of file test_utils.py.

00054 
00055     def test_createKeywords_multiple(self):
00056         _ITEMS = (('foo', 'bar'), ('baz', 'peng'))
00057         hashed = _createHashedValue(_ITEMS)
00058         self.assertEqual(createKeywords(foo='bar', baz='peng'),
00059                          {'keywords': hashed})

Here is the call graph for this function:

Definition at line 85 of file test_utils.py.

00085 
00086     def test_createKeywords_unicode_chinese(self):
00087         _ITEMS = (('foo', 'bar'), ('baz', u'\u03a4\u03b6'))
00088         hashed = _createHashedValue(_ITEMS)
00089         self.assertEqual(createKeywords(foo='bar', baz=u'\u03a4\u03b6'),
00090                 {'keywords': hashed})

Here is the call graph for this function:

Definition at line 72 of file test_utils.py.

00072 
00073     def test_createKeywords_unicode_umlaut(self):
00074         _ITEMS = (('foo', 'bar'), ('baz', u'M\344dchen'))
00075         hashed = _createHashedValue(_ITEMS)
00076         self.assertEqual(createKeywords(foo='bar', baz=u'M\344dchen'),
00077                          {'keywords': hashed})

Here is the call graph for this function:

Definition at line 78 of file test_utils.py.

00078 
00079     def test_createKeywords_utf16_umlaut(self):
00080         _ITEMS = (('foo', 'bar'), ('baz', u'M\344dchen'.encode('utf-16')))
00081         hashed = _createHashedValue(_ITEMS)
00082         self.assertEqual(createKeywords(foo='bar',
00083                                         baz=u'M\344dchen'.encode('utf-16')),
00084                          {'keywords': hashed})

Here is the call graph for this function:

Definition at line 66 of file test_utils.py.

00066 
00067     def test_createKeywords_utf8_umlaut(self):
00068         _ITEMS = (('foo', 'bar'), ('baz', 'M\303\244dchen'))
00069         hashed = _createHashedValue(_ITEMS)
00070         self.assertEqual(createKeywords(foo='bar', baz='M\303\244dchen'),
00071                          {'keywords': hashed})

Here is the call graph for this function:

Definition at line 24 of file test_utils.py.

00024 
00025     def test_createViewName(self):
00026         self.assertEqual(createViewName('foo', 'bar'), 'foo-bar')

Here is the call graph for this function:

Definition at line 39 of file test_utils.py.

00039 
00040     def test_createViewName_latin1_umlaut_in_handle(self):
00041         self.assertEqual(createViewName('foo', 'b\344r'), 'foo-b\344r')

Here is the call graph for this function:

Definition at line 30 of file test_utils.py.

00030 
00031     def test_createViewName_latin1_umlaut_in_method(self):
00032         self.assertEqual(createViewName('f\366o'), 'f\366o')

Here is the call graph for this function:

Definition at line 27 of file test_utils.py.

00027 
00028     def test_createViewName_no_user_handle(self):
00029         self.assertEqual(createViewName('foo', None), 'foo')

Here is the call graph for this function:

Definition at line 45 of file test_utils.py.

00045 
00046     def test_createViewName_unicode_umlaut_in_handle(self):
00047         self.assertEqual(createViewName('foo', u'b\344r'), 'foo-b\303\244r')

Here is the call graph for this function:

Definition at line 36 of file test_utils.py.

00036 
00037     def test_createViewName_unicode_umlaut_in_method(self):
00038         self.assertEqual(createViewName(u'f\366o'), 'f\303\266o')

Here is the call graph for this function:

Definition at line 42 of file test_utils.py.

00042 
00043     def test_createViewName_utf8_umlaut_in_handle(self):
00044         self.assertEqual(createViewName('foo', 'b\303\244r'), 'foo-b\303\244r')

Here is the call graph for this function:

Definition at line 33 of file test_utils.py.

00033 
00034     def test_createViewName_utf8_umlaut_in_method(self):
00035         self.assertEqual(createViewName('f\303\266o'), 'f\303\266o')

Here is the call graph for this function:


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