Skip to content

Commit 2cf888f

Browse files
committed
Test issuer as tuple
1 parent 951c390 commit 2cf888f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_jwt.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,17 @@ def test_iss_list(self, key):
358358
token = jwt.encode(claims, key)
359359
jwt.decode(token, key, issuer=['https://issuer', 'issuer'])
360360

361+
def test_iss_tuple(self, key):
362+
363+
iss = 'issuer'
364+
365+
claims = {
366+
'iss': iss
367+
}
368+
369+
token = jwt.encode(claims, key)
370+
jwt.decode(token, key, issuer=('https://issuer', 'issuer'))
371+
361372
def test_iss_invalid(self, key):
362373

363374
iss = 'issuer'

0 commit comments

Comments
 (0)