#NEWLINE# def test_should_return_type_json_as_specified_in_url( self ) : #NEWLINE# #INDENT# response = self . get ( '/api/1.json' ) #NEWLINE# assert_response_code ( response , 200 ) #NEWLINE# data = loads ( response . body . decode ( 'utf-8' ) ) #NEWLINE# assert ( 'id' in data . decode ( 'utf-8' ) )