MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / test_sync_sign_prehashed_length_error

Function test_sync_sign_prehashed_length_error

sdk/python/tests/test_client.py:385–390  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

383
384
385def test_sync_sign_prehashed_length_error():
386 client = DstackClient()
387 algo = "secp256k1_prehashed"
388 with pytest.raises(ValueError) as excinfo:
389 client.sign(algo, b"too short")
390 assert "32-byte digest" in str(excinfo.value)
391
392
393@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

signMethod · 0.95
DstackClientClass · 0.90

Tested by

no test coverage detected