def METHOD_NAME(self):
    # bogus test of new.code()
    def f(a): pass
    c = f.func_code
    argcount = c.co_argcount
    nlocals = c.co_nlocals
    stacksize = 1  # TODO c.co_stacksize
    flags = c.co_flags
    codestring = 'd\x00\x00S'  # TODO c.co_code
    constants = (None,)  # TODO c.co_consts
    names = ()  # TODO c.co_names
    varnames = c.co_varnames
    filename = c.co_filename
    name = c.co_name
    firstlineno = c.co_firstlineno
    lnotab = '' # TODO c.co_lnotab, but also see http://bugs.jython.org/issue1638
    freevars = c.co_freevars
    cellvars = c.co_cellvars
    d = new.code(argcount, nlocals, stacksize, flags, codestring,
                 constants, names, varnames, filename, name,
                 firstlineno, lnotab, freevars, cellvars)
    # test backwards-compatibility version with no freevars or cellvars
    d = new.code(argcount, nlocals, stacksize, flags, codestring,
                 constants, names, varnames, filename, name,
                 firstlineno, lnotab)
    # negative co_argcount used to trigger a SystemError
    self.assertRaises(ValueError, new.code,
        -argcount, nlocals, stacksize, flags, codestring,
        constants, names, varnames, filename, name, firstlineno, lnotab)
    # negative co_nlocals used to trigger a SystemError
    self.assertRaises(ValueError, new.code,
        argcount, -nlocals, stacksize, flags, codestring,
        constants, names, varnames, filename, name, firstlineno, lnotab)
    # non-string co_name used to trigger a Py_FatalError
    self.assertRaises(TypeError, new.code,
        argcount, nlocals, stacksize, flags, codestring,
        constants, (5,), varnames, filename, name, firstlineno, lnotab)
    # new.code used to be a way to mutate a tuple...
    class S(str):
        pass
    t = (S("ab"),)
    d = new.code(argcount, nlocals, stacksize, flags, codestring,
                 constants, t, varnames, filename, name,
                 firstlineno, lnotab)
    self.assertTrue(type(t[0]) is S, "eek, tuple changed under us!")