@@ -90,6 +90,7 @@ def test_create_case_example(self):
9090 create_case request example
9191 """
9292 try :
93+ print ('\n create_case() result:' )
9394 # begin-createCase
9495
9596 offering_type = OfferingType (
@@ -109,7 +110,7 @@ def test_create_case_example(self):
109110 severity = 4 ,
110111 ).get_result ()
111112
112- print (' \n create_case() result: \n ' + json .dumps (case , indent = 2 ))
113+ print (json .dumps (case , indent = 2 ))
113114
114115 # end-createCase
115116
@@ -130,6 +131,7 @@ def test_get_case_example(self):
130131 assert case_number is not None
131132
132133 try :
134+ print ('\n get_case() result:' )
133135 # begin-getCase
134136
135137 fields_to_return = [
@@ -144,7 +146,7 @@ def test_get_case_example(self):
144146 fields = fields_to_return
145147 ).get_result ()
146148
147- print (' \n get_case() result: \n ' + json .dumps (case , indent = 2 ))
149+ print (json .dumps (case , indent = 2 ))
148150
149151 # end-getCase
150152
@@ -157,6 +159,7 @@ def test_get_cases_example(self):
157159 get_cases request example
158160 """
159161 try :
162+ print ('\n get_cases() result:' )
160163 # begin-getCases
161164
162165 case_list = case_management_service .get_cases (
@@ -166,7 +169,7 @@ def test_get_cases_example(self):
166169 sort = GetCasesEnums .Fields .UPDATED_AT ,
167170 ).get_result ()
168171
169- print (' \n get_cases() result: \n ' + json .dumps (case_list , indent = 2 ))
172+ print (json .dumps (case_list , indent = 2 ))
170173
171174 # end-getCases
172175
@@ -181,14 +184,15 @@ def test_add_comment_example(self):
181184 assert case_number is not None
182185
183186 try :
187+ print ('\n add_comment() result:' )
184188 # begin-addComment
185189
186190 comment = case_management_service .add_comment (
187191 case_number = case_number ,
188192 comment = 'This is an example comment.'
189193 ).get_result ()
190194
191- print (' \n add_comment() result: \n ' + json .dumps (comment , indent = 2 ))
195+ print (json .dumps (comment , indent = 2 ))
192196
193197 # end-addComment
194198
@@ -203,6 +207,7 @@ def test_add_watchlist_example(self):
203207 assert case_number is not None
204208
205209 try :
210+ print ('\n add_watchlist() result:' )
206211 # begin-addWatchlist
207212
208213 watchlist_users = [
@@ -214,7 +219,7 @@ def test_add_watchlist_example(self):
214219 watchlist = watchlist_users ,
215220 ).get_result ()
216221
217- print (' \n add_watchlist() result: \n ' + json .dumps (watchlist_add_response , indent = 2 ))
222+ print (json .dumps (watchlist_add_response , indent = 2 ))
218223
219224 # end-addWatchlist
220225
@@ -229,6 +234,7 @@ def test_remove_watchlist_example(self):
229234 assert case_number is not None
230235
231236 try :
237+ print ('\n remove_watchlist() result:' )
232238 # begin-removeWatchlist
233239
234240 watchlist_users = [
@@ -240,7 +246,7 @@ def test_remove_watchlist_example(self):
240246 watchlist = watchlist_users ,
241247 ).get_result ()
242248
243- print (' \n remove_watchlist() result: \n ' + json .dumps (watchlist , indent = 2 ))
249+ print (json .dumps (watchlist , indent = 2 ))
244250
245251 # end-removeWatchlist
246252
@@ -256,6 +262,7 @@ def test_add_resource_example(self):
256262 assert resource_crn is not None
257263
258264 try :
265+ print ('\n add_resource() result:' )
259266 # begin-addResource
260267
261268 resource = case_management_service .add_resource (
@@ -264,7 +271,7 @@ def test_add_resource_example(self):
264271 note = 'This resource is the service that is having the problem.' ,
265272 ).get_result ()
266273
267- print (' \n add_resource() result: \n ' + json .dumps (resource , indent = 2 ))
274+ print (json .dumps (resource , indent = 2 ))
268275
269276 # end-addResource
270277
@@ -279,6 +286,7 @@ def test_upload_file_example(self):
279286 assert case_number is not None
280287
281288 try :
289+ print ('\n upload_file() result:' )
282290 # begin-uploadFile
283291
284292 example_file_content = b'This is the content of the file to upload.'
@@ -296,7 +304,7 @@ def test_upload_file_example(self):
296304 file = files_to_upload ,
297305 ).get_result ()
298306
299- print (' \n upload_file() result: \n ' + json .dumps (attachment , indent = 2 ))
307+ print (json .dumps (attachment , indent = 2 ))
300308
301309 # end-uploadFile
302310
@@ -318,6 +326,7 @@ def test_download_file_example(self):
318326 assert attachment_id is not None
319327
320328 try :
329+ print ('\n download_file() result:' )
321330 # begin-downloadFile
322331
323332 response = case_management_service .download_file (
@@ -327,9 +336,7 @@ def test_download_file_example(self):
327336
328337 file = response .get_result ()
329338
330- print ('\n download_file() result:\n ' )
331- print ('Attachment content-type:' , response .get_headers ()['content-type' ])
332- print ('Attachment contents:' , file .content )
339+ print (file .content )
333340
334341 # end-downloadFile
335342
@@ -345,14 +352,15 @@ def test_delete_file_example(self):
345352 assert attachment_id is not None
346353
347354 try :
355+ print ('\n delete_file() result:' )
348356 # begin-deleteFile
349357
350358 attachment_list = case_management_service .delete_file (
351359 case_number = case_number ,
352360 file_id = attachment_id
353361 ).get_result ()
354362
355- print (' \n delete_file() result: \n ' + json .dumps (attachment_list , indent = 2 ))
363+ print (json .dumps (attachment_list , indent = 2 ))
356364
357365 # end-deleteFile
358366
@@ -367,6 +375,7 @@ def test_update_case_status_example(self):
367375 assert case_number is not None
368376
369377 try :
378+ print ('\n update_case_status() result:' )
370379 # begin-updateCaseStatus
371380
372381 status_payload_model = {
@@ -380,7 +389,7 @@ def test_update_case_status_example(self):
380389 status_payload = status_payload_model
381390 ).get_result ()
382391
383- print (' \n update_case_status() result: \n ' + json .dumps (case , indent = 2 ))
392+ print (json .dumps (case , indent = 2 ))
384393
385394 # end-updateCaseStatus
386395
0 commit comments