def METHOD_NAME(self):
    scanstring = self.json.decoder.scanstring
    bad_escapes = [
        '"\\"',
        '"\\x"',
        '"\\u"',
        '"\\u0"',
        '"\\u01"',
        '"\\u012"',
        '"\\uz012"',
        '"\\u0z12"',
        '"\\u01z2"',
        '"\\u012z"',
        '"\\u0x12"',
        '"\\u0X12"',
        '"\\ud834\\"',
        '"\\ud834\\u"',
        '"\\ud834\\ud"',
        '"\\ud834\\udd"',
        '"\\ud834\\udd2"',
        '"\\ud834\\uzdd2"',
        '"\\ud834\\udzd2"',
        '"\\ud834\\uddz2"',
        '"\\ud834\\udd2z"',
        '"\\ud834\\u0x20"',
        '"\\ud834\\u0X20"',
    ]
    for s in bad_escapes:
        with self.assertRaises(ValueError, msg=s):
            scanstring(s, 1, True)