def test_call_descr_extra_info(): FUNC = ootype.StaticMethod([], ootype.Signed) ARGS = () descr1 = CliCPU.calldescrof(FUNC, ARGS, ootype.Signed, "hello") extrainfo = descr1.get_extra_info() assert extrainfo == "hello" descr2 = CliCPU.calldescrof(FUNC, ARGS, ootype.Signed, "hello") assert descr2 is descr1 descr3 = CliCPU.calldescrof(FUNC, ARGS, ootype.Signed) assert descr3 is not descr1 assert descr3.get_extra_info() is None