Back to index

enigmail  1.4.3
Public Member Functions
unit-writemozinfo.TestJsonify Class Reference

List of all members.

Public Member Functions

def testBasic

Detailed Description

Test the jsonify function.

Definition at line 187 of file unit-writemozinfo.py.


Member Function Documentation

def unit-writemozinfo.TestJsonify.testBasic (   self)
Sanity check the set of accepted Python value types.

Definition at line 191 of file unit-writemozinfo.py.

00191 
00192     def testBasic(self):
00193         """
00194         Sanity check the set of accepted Python value types.
00195         """
00196         j = parse_json(jsonify({'a':True,'b':False,'c':None,'d':100,'e':"abc"}))
00197         self.assertEquals(True, j['a'])
00198         self.assertEquals(False, j['b'])
00199         self.assertEquals(None, j['c'])
00200         self.assertEquals(100, j['d'])
00201         self.assertEquals("abc", j['e'])

Here is the call graph for this function:


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