File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,11 @@ def test_start_archive_with_name(self):
100
100
archive = self .opentok .start_archive (self .session_id , name = u ('ARCHIVE NAME' ))
101
101
102
102
claims = jwt .decode (httpretty .last_request ().headers [u ('x-tb-opentok-auth' )], self .api_secret , algorithms = [u ('HS256' )])
103
-
103
+ expect (claims [u ('iss' )]).to .equal (self .api_key )
104
+ expect (claims [u ('ist' )]).to .equal (u ('project' ))
105
+ expect (float (claims [u ('exp' )])).to .be .greater_than (float (time .time ()))
106
+ expect (float (claims [u ('jti' )])).to .be .greater_than_or_equal_to (float (0 ))
107
+ expect (float (claims [u ('jti' )])).to .be .lower_than (float (1 ))
104
108
expect (httpretty .last_request ().headers [u ('user-agent' )]).to .contain (u ('OpenTok-Python-SDK/' )+ __version__ )
105
109
expect (httpretty .last_request ().headers [u ('content-type' )]).to .equal (u ('application/json' ))
106
110
# non-deterministic json encoding. have to decode to test it properly
You can’t perform that action at this time.
0 commit comments