Download src/grok/tests/test_quorum.py from TTOPM/belel-protocol: direct link, hf CLI and curl.
- Browser
- Download file 254 Bytes
-
https://huggingface.co/TTOPM/belel-protocol/resolve/main/src/grok/tests/test_quorum.py
- Command line
-
hf download hf://TTOPM/belel-protocol/src/grok/tests/test_quorum.py
-
curl -L -o test_quorum.py https://huggingface.co/TTOPM/belel-protocol/resolve/main/src/grok/tests/test_quorum.py
254 Bytes
| from grok.grok_integrity_beacon import QuorumVerifier | |
| def test_quorum_empty(): | |
| q = QuorumVerifier([], 0.66) | |
| res = q.verify() | |
| assert res["agree"] == 0 | |
| # For full tests, stub _fetch_witness to return known JSONs and assert quorum True/False. | |