MCPcopy Create free account
hub / github.com/simplejson/simplejson / MisbehavingBytesSubtype

Class MisbehavingBytesSubtype

simplejson/tests/test_decode.py:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8from simplejson import OrderedDict
9
10class MisbehavingBytesSubtype(binary_type):
11 def decode(self, encoding=None):
12 return "bad decode"
13 def __str__(self):
14 return "bad __str__"
15 def __bytes__(self):
16 return b("bad __bytes__")
17
18class TestDecode(TestCase):
19 def test_decimal(self):

Callers 1

test_bytes_decodeMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_bytes_decodeMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…