@@ -228,7 +228,10 @@ def test_create_always_archive_mode_session(self):
228
228
)
229
229
230
230
session = self .opentok .create_session (
231
- media_mode = MediaModes .routed , archive_mode = ArchiveModes .always , archive_name = 'test_opentok_archive' , archive_resolution = '1920x1080'
231
+ media_mode = MediaModes .routed ,
232
+ archive_mode = ArchiveModes .always ,
233
+ archive_name = "test_opentok_archive" ,
234
+ archive_resolution = "1920x1080" ,
232
235
)
233
236
234
237
validate_jwt_header (self , httpretty .last_request ().headers [u ("x-opentok-auth" )])
@@ -238,6 +241,8 @@ def test_create_always_archive_mode_session(self):
238
241
body = parse_qs (httpretty .last_request ().body )
239
242
expect (body ).to (have_key (b ("p2p.preference" ), [b ("disabled" )]))
240
243
expect (body ).to (have_key (b ("archiveMode" ), [b ("always" )]))
244
+ expect (body ).to (have_key (b ("archiveName" ), [b ("test_opentok_archive" )]))
245
+ expect (body ).to (have_key (b ("archiveResolution" ), [b ("1920x1080" )]))
241
246
expect (session ).to (be_a (Session ))
242
247
expect (session ).to (
243
248
have_property (
@@ -265,28 +270,28 @@ def test_auto_archive_errors(self):
265
270
self .opentok .create_session ,
266
271
media_mode = MediaModes .routed ,
267
272
archive_mode = ArchiveModes .manual ,
268
- archive_name = ' my_archive' ,
273
+ archive_name = " my_archive" ,
269
274
)
270
275
self .assertRaises (
271
276
OpenTokException ,
272
277
self .opentok .create_session ,
273
278
media_mode = MediaModes .routed ,
274
279
archive_mode = ArchiveModes .manual ,
275
- archive_resolution = ' 640x480'
280
+ archive_resolution = " 640x480" ,
276
281
)
277
282
self .assertRaises (
278
283
OpenTokException ,
279
284
self .opentok .create_session ,
280
285
media_mode = MediaModes .routed ,
281
286
archive_mode = ArchiveModes .always ,
282
- archive_name = ' my_incredibly_long_name_that_is_definitely_going_to_be_over_the_80_character_limit_we_currently_impose'
287
+ archive_name = " my_incredibly_long_name_that_is_definitely_going_to_be_over_the_80_character_limit_we_currently_impose" ,
283
288
)
284
289
self .assertRaises (
285
290
OpenTokException ,
286
291
self .opentok .create_session ,
287
292
media_mode = MediaModes .routed ,
288
293
archive_mode = ArchiveModes .always ,
289
- archive_resolution = ' 10x10'
294
+ archive_resolution = " 10x10" ,
290
295
)
291
296
292
297
@httpretty .activate
@@ -304,7 +309,7 @@ def test_create_session_with_e2ee(self):
304
309
session = self .opentok .create_session (e2ee = True )
305
310
306
311
body = parse_qs (httpretty .last_request ().body )
307
- expect (body ).to (have_key (b ("e2ee" ), [b' True' ]))
312
+ expect (body ).to (have_key (b ("e2ee" ), [b" True" ]))
308
313
expect (session ).to (be_a (Session ))
309
314
expect (session ).to (
310
315
have_property (
0 commit comments