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

Function test_async_sign_prehashed_length_error

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

Source from the content-addressed store, hash-verified

457
458@pytest.mark.asyncio
459async def test_async_sign_prehashed_length_error():
460 client = AsyncDstackClient()
461 algo = "secp256k1_prehashed"
462 with pytest.raises(ValueError) as excinfo:
463 await client.sign(algo, b"too short")
464 assert "32-byte digest" in str(excinfo.value)
465
466
467# Test deprecated TappdClient

Callers

nothing calls this directly

Calls 2

signMethod · 0.95
AsyncDstackClientClass · 0.90

Tested by

no test coverage detected