Back to index

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

List of all members.

Public Member Functions

def testNone
def testBool
def testStr
def testInt
def testInvalid

Detailed Description

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


Member Function Documentation

def unit-writemozinfo.TestJsonValue.testBool (   self)

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

00167 
00168     def testBool(self):
00169         self.assertEqual("true", repr(JsonValue(True)))
00170         self.assertEqual("false", repr(JsonValue(False)))

Here is the call graph for this function:

def unit-writemozinfo.TestJsonValue.testInt (   self)

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

00174 
00175     def testInt(self):
00176         self.assertEqual("100", repr(JsonValue(100)))

Here is the call graph for this function:

def unit-writemozinfo.TestJsonValue.testInvalid (   self)

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

00177 
00178     def testInvalid(self):
00179         self.assertRaises(Exception, JsonValue, unicode("abc"))
00180         self.assertRaises(Exception, JsonValue, 123.45)

def unit-writemozinfo.TestJsonValue.testNone (   self)

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

00164 
00165     def testNone(self):
00166         self.assertEqual("null", repr(JsonValue(None)))
        

Here is the call graph for this function:

def unit-writemozinfo.TestJsonValue.testStr (   self)

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

00171 
00172     def testStr(self):
00173         self.assertEqual("'abc'", repr(JsonValue("abc")))

Here is the call graph for this function:


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