|
@@ -4,6 +4,7 @@ import platform
|
|
|
import unittest
|
|
|
import os
|
|
|
from typing import Union
|
|
|
+from datetime import datetime
|
|
|
|
|
|
import ujson
|
|
|
from lxml import etree
|
|
@@ -33,6 +34,9 @@ class oauthTest(unittest.TestCase):
|
|
|
# print(self.anoauth.to)
|
|
|
print(self.anoauth.is_valid)
|
|
|
|
|
|
+ def test_jwt_props(self):
|
|
|
+ print(datetime.fromtimestamp(self.anoauth.jwt_props('../anafapi/efact_jwt.json')['exp']).strftime('%d-%m-%Y %H:%M:%S'))
|
|
|
+
|
|
|
def test_browser_redirect(self):
|
|
|
print(self.anoauth._browser_redirect())
|
|
|
|