@@ -42,7 +42,7 @@ def test_start_archive(self):
42
42
43
43
archive = self .opentok .start_archive (self .session_id )
44
44
45
- validate_jwt_header (self , httpretty .last_request ().headers [u ('x-tb- opentok-auth' )])
45
+ validate_jwt_header (self , httpretty .last_request ().headers [u ('x-opentok-auth' )])
46
46
expect (httpretty .last_request ().headers [u ('user-agent' )]).to .contain (u ('OpenTok-Python-SDK/' )+ __version__ )
47
47
expect (httpretty .last_request ().headers [u ('content-type' )]).to .equal (u ('application/json' ))
48
48
# non-deterministic json encoding. have to decode to test it properly
@@ -93,7 +93,7 @@ def test_start_archive_with_name(self):
93
93
94
94
archive = self .opentok .start_archive (self .session_id , name = u ('ARCHIVE NAME' ))
95
95
96
- validate_jwt_header (self , httpretty .last_request ().headers [u ('x-tb- opentok-auth' )])
96
+ validate_jwt_header (self , httpretty .last_request ().headers [u ('x-opentok-auth' )])
97
97
expect (httpretty .last_request ().headers [u ('user-agent' )]).to .contain (u ('OpenTok-Python-SDK/' )+ __version__ )
98
98
expect (httpretty .last_request ().headers [u ('content-type' )]).to .equal (u ('application/json' ))
99
99
# non-deterministic json encoding. have to decode to test it properly
@@ -142,7 +142,7 @@ def test_start_voice_archive(self):
142
142
143
143
archive = self .opentok .start_archive (self .session_id , name = u ('ARCHIVE NAME' ), has_video = False )
144
144
145
- validate_jwt_header (self , httpretty .last_request ().headers [u ('x-tb- opentok-auth' )])
145
+ validate_jwt_header (self , httpretty .last_request ().headers [u ('x-opentok-auth' )])
146
146
expect (httpretty .last_request ().headers [u ('user-agent' )]).to .contain (u ('OpenTok-Python-SDK/' )+ __version__ )
147
147
expect (httpretty .last_request ().headers [u ('content-type' )]).to .equal (u ('application/json' ))
148
148
# non-deterministic json encoding. have to decode to test it properly
@@ -193,7 +193,7 @@ def test_start_individual_archive(self):
193
193
194
194
archive = self .opentok .start_archive (self .session_id , name = u ('ARCHIVE NAME' ), output_mode = OutputModes .individual )
195
195
196
- validate_jwt_header (self , httpretty .last_request ().headers [u ('x-tb- opentok-auth' )])
196
+ validate_jwt_header (self , httpretty .last_request ().headers [u ('x-opentok-auth' )])
197
197
expect (httpretty .last_request ().headers [u ('user-agent' )]).to .contain (u ('OpenTok-Python-SDK/' )+ __version__ )
198
198
expect (httpretty .last_request ().headers [u ('content-type' )]).to .equal (u ('application/json' ))
199
199
# non-deterministic json encoding. have to decode to test it properly
@@ -245,7 +245,7 @@ def test_start_composed_archive(self):
245
245
246
246
archive = self .opentok .start_archive (self .session_id , name = u ('ARCHIVE NAME' ), output_mode = OutputModes .composed )
247
247
248
- validate_jwt_header (self , httpretty .last_request ().headers [u ('x-tb- opentok-auth' )])
248
+ validate_jwt_header (self , httpretty .last_request ().headers [u ('x-opentok-auth' )])
249
249
expect (httpretty .last_request ().headers [u ('user-agent' )]).to .contain (u ('OpenTok-Python-SDK/' )+ __version__ )
250
250
expect (httpretty .last_request ().headers [u ('content-type' )]).to .equal (u ('application/json' ))
251
251
# non-deterministic json encoding. have to decode to test it properly
@@ -298,7 +298,7 @@ def test_stop_archive(self):
298
298
299
299
archive = self .opentok .stop_archive (archive_id )
300
300
301
- validate_jwt_header (self , httpretty .last_request ().headers [u ('x-tb- opentok-auth' )])
301
+ validate_jwt_header (self , httpretty .last_request ().headers [u ('x-opentok-auth' )])
302
302
expect (httpretty .last_request ().headers [u ('user-agent' )]).to .contain (u ('OpenTok-Python-SDK/' )+ __version__ )
303
303
expect (httpretty .last_request ().headers [u ('content-type' )]).to .equal (u ('application/json' ))
304
304
expect (archive ).to .be .an (Archive )
@@ -325,7 +325,7 @@ def test_delete_archive(self):
325
325
326
326
self .opentok .delete_archive (archive_id )
327
327
328
- validate_jwt_header (self , httpretty .last_request ().headers [u ('x-tb- opentok-auth' )])
328
+ validate_jwt_header (self , httpretty .last_request ().headers [u ('x-opentok-auth' )])
329
329
expect (httpretty .last_request ().headers [u ('user-agent' )]).to .contain (u ('OpenTok-Python-SDK/' )+ __version__ )
330
330
expect (httpretty .last_request ().headers [u ('content-type' )]).to .equal (u ('application/json' ))
331
331
@@ -354,7 +354,7 @@ def test_find_archive(self):
354
354
355
355
archive = self .opentok .get_archive (archive_id )
356
356
357
- validate_jwt_header (self , httpretty .last_request ().headers [u ('x-tb- opentok-auth' )])
357
+ validate_jwt_header (self , httpretty .last_request ().headers [u ('x-opentok-auth' )])
358
358
expect (httpretty .last_request ().headers [u ('user-agent' )]).to .contain (u ('OpenTok-Python-SDK/' )+ __version__ )
359
359
expect (httpretty .last_request ().headers [u ('content-type' )]).to .equal (u ('application/json' ))
360
360
expect (archive ).to .be .an (Archive )
@@ -469,7 +469,7 @@ def test_find_archives(self):
469
469
470
470
archive_list = self .opentok .get_archives ()
471
471
472
- validate_jwt_header (self , httpretty .last_request ().headers [u ('x-tb- opentok-auth' )])
472
+ validate_jwt_header (self , httpretty .last_request ().headers [u ('x-opentok-auth' )])
473
473
expect (httpretty .last_request ().headers [u ('user-agent' )]).to .contain (u ('OpenTok-Python-SDK/' )+ __version__ )
474
474
expect (httpretty .last_request ().headers [u ('content-type' )]).to .equal (u ('application/json' ))
475
475
expect (archive_list ).to .be .an (ArchiveList )
@@ -529,7 +529,7 @@ def test_find_archives_with_offset(self):
529
529
530
530
archive_list = self .opentok .get_archives (offset = 3 )
531
531
532
- validate_jwt_header (self , httpretty .last_request ().headers [u ('x-tb- opentok-auth' )])
532
+ validate_jwt_header (self , httpretty .last_request ().headers [u ('x-opentok-auth' )])
533
533
expect (httpretty .last_request ().headers [u ('user-agent' )]).to .contain (u ('OpenTok-Python-SDK/' )+ __version__ )
534
534
expect (httpretty .last_request ().headers [u ('content-type' )]).to .equal (u ('application/json' ))
535
535
expect (httpretty .last_request ()).to .have .property ("querystring" ).being .equal ({
@@ -579,7 +579,7 @@ def test_find_archives_with_count(self):
579
579
580
580
archive_list = self .opentok .get_archives (count = 2 )
581
581
582
- validate_jwt_header (self , httpretty .last_request ().headers [u ('x-tb- opentok-auth' )])
582
+ validate_jwt_header (self , httpretty .last_request ().headers [u ('x-opentok-auth' )])
583
583
expect (httpretty .last_request ().headers [u ('user-agent' )]).to .contain (u ('OpenTok-Python-SDK/' )+ __version__ )
584
584
expect (httpretty .last_request ().headers [u ('content-type' )]).to .equal (u ('application/json' ))
585
585
expect (httpretty .last_request ()).to .have .property ("querystring" ).being .equal ({
@@ -655,7 +655,7 @@ def test_find_archives_with_offset_and_count(self):
655
655
656
656
archive_list = self .opentok .get_archives (count = 4 , offset = 2 )
657
657
658
- validate_jwt_header (self , httpretty .last_request ().headers [u ('x-tb- opentok-auth' )])
658
+ validate_jwt_header (self , httpretty .last_request ().headers [u ('x-opentok-auth' )])
659
659
expect (httpretty .last_request ().headers [u ('user-agent' )]).to .contain (u ('OpenTok-Python-SDK/' )+ __version__ )
660
660
expect (httpretty .last_request ().headers [u ('content-type' )]).to .equal (u ('application/json' ))
661
661
expect (httpretty .last_request ()).to .have .property ("querystring" ).being .equal ({
0 commit comments