def METHOD_NAME(self, size):
    func = self.METHOD_NAME
    if size < func.minsize:
        raise unittest.SkipTest("not enough memory: %.1fG minimum needed" %
                (func.minsize * func.memuse / float(1024**3),))
    # very very long bogus character name
    x = b'\\N{SPACE' + b'x' * int(_testcapi.UINT_MAX + 1) + b'}'
    self.assertEqual(len(x), len(b'\\N{SPACE}') +
                                (_testcapi.UINT_MAX + 1))
    self.assertRaisesRegexp(UnicodeError,
        'unknown Unicode character name',
        x.decode, 'unicode-escape'
    )