Back to index

python3.2  3.2.2
Public Member Functions
tkinter.test.test_ttk.test_functions.TclObjsToPyTest Class Reference

List of all members.

Public Member Functions

def test_unicode
def test_multivalues
def test_nosplit

Detailed Description

Definition at line 392 of file test_functions.py.


Member Function Documentation

Definition at line 401 of file test_functions.py.

00401 
00402     def test_multivalues(self):
00403         adict = {'opt': [1, 2, 3, 4]}
00404         self.assertEqual(ttk.tclobjs_to_py(adict), {'opt': [1, 2, 3, 4]})
00405 
00406         adict['opt'] = [1, 'xm', 3]
00407         self.assertEqual(ttk.tclobjs_to_py(adict), {'opt': [1, 'xm', 3]})
00408 
00409         adict['opt'] = (MockStateSpec('a', 'b'), 'válũè')
00410         self.assertEqual(ttk.tclobjs_to_py(adict),
00411             {'opt': [('a', 'b', 'válũè')]})
00412 
00413         self.assertEqual(ttk.tclobjs_to_py({'x': ['y z']}),
00414             {'x': ['y z']})

Here is the call graph for this function:

Definition at line 415 of file test_functions.py.

00415 
00416     def test_nosplit(self):
00417         self.assertEqual(ttk.tclobjs_to_py({'text': 'some text'}),
00418             {'text': 'some text'})

Here is the call graph for this function:

Definition at line 394 of file test_functions.py.

00394 
00395     def test_unicode(self):
00396         adict = {'opt': 'välúè'}
00397         self.assertEqual(ttk.tclobjs_to_py(adict), {'opt': 'välúè'})
00398 
00399         adict['opt'] = MockTclObj(adict['opt'])
00400         self.assertEqual(ttk.tclobjs_to_py(adict), {'opt': 'välúè'})

Here is the call graph for this function:


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