MCPcopy
hub / github.com/apache/caldera / test_base64_encoding

Method test_base64_encoding

tests/objects/test_data_encoder.py:46–52  ·  view source on GitHub ↗
(self, base64_encoder)

Source from the content-addressed store, hash-verified

44 assert decoded == data
45
46 def test_base64_encoding(self, base64_encoder):
47 data = b'this will be encoded/decoded in base64'
48 encoded = base64_encoder.encode(data)
49 expected_encoded = b64encode(data)
50 assert encoded == expected_encoded
51 decoded = base64_encoder.decode(encoded)
52 assert decoded == data

Callers

nothing calls this directly

Calls 2

encodeMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected