#NEWLINE# def test_json_codec( self ) : #NEWLINE# #INDENT# mime_codec = MimeCodec ( ) #NEWLINE# mime = 'application/json' #NEWLINE# value = dict ( key = 'value' ) #NEWLINE# data = '{"key": "value"}' #NEWLINE# self . assertEqual ( data , mime_codec . marshal ( mime , value ) ) #NEWLINE# self . assertEqual ( value , mime_codec . unmarshal ( mime , data ) )