Skip to content

Commit a6eaf95

Browse files
committed
feat: license JWT/JWKS and verify parity updates
1 parent ab6fec7 commit a6eaf95

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

tests/test_hwuid_hash_spec.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import re
2+
import unittest
3+
4+
from licensechain.client import LicenseChainClient
5+
6+
7+
class HwuidHashSpecTest(unittest.TestCase):
8+
def test_default_hwuid_matches_hash_spec(self) -> None:
9+
client = LicenseChainClient(api_key="test-key")
10+
h1 = client._default_hwuid()
11+
h2 = client._default_hwuid()
12+
13+
self.assertEqual(h1, h2)
14+
self.assertIsNotNone(re.fullmatch(r"[a-f0-9]{64}", h1))
15+
16+
17+
if __name__ == "__main__":
18+
unittest.main()

0 commit comments

Comments
 (0)