#NEWLINE# def test_json_ctype( self ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'valid' : 'stuff' , #NEWLINE# #UNINDENT# } #NEWLINE# ( request , response ) = self . request ( '/' , method = 'POST' , body = json . dumps ( data ) , headers = ( ( 'Content-type' , 'application/json' ) , ) ) #NEWLINE# self . assertEqual ( response . status , '200 OK' ) #NEWLINE# self . assertDictEqual ( data . unserialized_data , data )