@@ -63,19 +63,19 @@ def test_request_with_valid_token_is_allowed(self):
63
63
'client-app/key01' , self ._private_key_pem
64
64
)
65
65
body , resp_info , environ = self .send_request (token = token )
66
- assert resp_info ['status' ] == '200 OK'
67
- assert 'ATL_ASAP_CLAIMS' in environ
66
+ self . assertEqual ( resp_info ['status' ], '200 OK' )
67
+ self . assertIn ( 'ATL_ASAP_CLAIMS' , environ )
68
68
69
69
def test_request_with_invalid_audience_is_rejected (self ):
70
70
token = create_token (
71
71
'client-app' , 'invalid-audience' ,
72
72
'client-app/key01' , self ._private_key_pem
73
73
)
74
74
body , resp_info , environ = self .send_request (token = token )
75
- assert resp_info ['status' ] == '401 Unauthorized'
76
- assert 'ATL_ASAP_CLAIMS' not in environ
75
+ self . assertEqual ( resp_info ['status' ], '401 Unauthorized' )
76
+ self . assertNotIn ( 'ATL_ASAP_CLAIMS' , environ )
77
77
78
78
def test_request_with_invalid_token_is_rejected (self ):
79
79
body , resp_info , environ = self .send_request (token = b'notavalidtoken' )
80
- assert resp_info ['status' ] == '401 Unauthorized'
81
- assert 'ATL_ASAP_CLAIMS' not in environ
80
+ self . assertEqual ( resp_info ['status' ], '401 Unauthorized' )
81
+ self . assertNotIn ( 'ATL_ASAP_CLAIMS' , environ )
0 commit comments