MCPcopy Index your code
hub / github.com/mozilla/cipherscan / test_create

Method test_create

cscan_tests/test_extensions.py:19–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17 self.assertIsNotNone(ext)
18
19 def test_create(self):
20 ext = KeyShareExtension()
21
22 ext.create([(1, bytearray(b'\x12')),
23 (2, bytearray(b'\x33'))])
24
25 self.assertEqual(ext.client_shares, [(1, bytearray(b'\x12')),
26 (2, bytearray(b'\x33'))])
27
28 def test_write(self):
29 ext = KeyShareExtension()

Callers

nothing calls this directly

Calls 2

createMethod · 0.95
KeyShareExtensionClass · 0.90

Tested by

no test coverage detected