We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab6fec7 commit a6eaf95Copy full SHA for a6eaf95
1 file changed
tests/test_hwuid_hash_spec.py
@@ -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