MCPcopy Create free account
hub / github.com/OpenMined/SyMPC / test_protocol_class_same_name

Function test_protocol_class_same_name

tests/sympc/protocol/protocol_test.py:38–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37
38def test_protocol_class_same_name() -> None:
39 class TestName(metaclass=Protocol):
40 share_class = ShareTensor
41 security_levels = ["semi-honest"]
42
43 with pytest.raises(ValueError):
44
45 class TestName(metaclass=Protocol):
46 share_class = ShareTensor
47 security_levels = ["semi-honest"]
48
49
50def test_exception_unsupported_fss_operation():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected