MCPcopy
hub / github.com/pmaupin/pdfrw / decode_bytes

Method decode_bytes

tests/test_pdfstring.py:38–41  ·  view source on GitHub ↗

Decode to bytes

(self, decode_this, expected)

Source from the content-addressed store, hash-verified

36 return x
37
38 def decode_bytes(self, decode_this, expected):
39 """ Decode to bytes"""
40 self.assertEqual(PdfString(decode_this).to_bytes(),
41 convert_store(expected))
42
43 def roundtrip(self, value, expected=None):
44 result = self.encode(value)

Callers 1

test_unescapingMethod · 0.95

Calls 3

PdfStringClass · 0.90
convert_storeFunction · 0.90
to_bytesMethod · 0.80

Tested by

no test coverage detected