def METHOD_NAME(self):
    msg = 'the JSON object must be str'
    for value in [1, 3.14, b'bytes', b'\xff\x00', [], {}, None]:
        self.assertRaisesRegex(TypeError, msg, self.loads, value)
    with self.assertRaisesRegex(TypeError, msg):
        self.json.load(BytesIO(b'[1,2,3]'))