marton levente 4 місяців тому
батько
коміт
eb8010e9ed
1 змінених файлів з 4 додано та 0 видалено
  1. 4 0
      tests/test_anafoauth.py

+ 4 - 0
tests/test_anafoauth.py

@@ -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())