Skip to content

Commit b7b809c

Browse files
author
Dave Mun
committed
Fix one test with missing expects
1 parent 90e3484 commit b7b809c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_archive_api.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ def test_start_archive_with_name(self):
100100
archive = self.opentok.start_archive(self.session_id, name=u('ARCHIVE NAME'))
101101

102102
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))
104108
expect(httpretty.last_request().headers[u('user-agent')]).to.contain(u('OpenTok-Python-SDK/')+__version__)
105109
expect(httpretty.last_request().headers[u('content-type')]).to.equal(u('application/json'))
106110
# non-deterministic json encoding. have to decode to test it properly

0 commit comments

Comments
 (0)