def get_expires_in(self): return jwt.decode(self.encoded_jwt_token)['expires_in']
def test_encode_jwt(self): my_encoded_dictionary = encode(data_dict_for_jwt_token) my_decoded_dictionary = decode(my_encoded_dictionary) self.assertEqual(my_decoded_dictionary, data_dict_for_jwt_token)
def get_decoded_jwt(self): return jwt.decode(self.encoded_jwt_token)