void () { doTest("Cat", """ from collections import namedtuple Cat = namedtuple("Cat", "name age") expr = Cat("name", 5)._make(["newname", 6])"""); doTest("Cat", """ from collections import namedtuple Cat = namedtuple("Cat", "name age") expr = Cat._make(["newname", 6])"""); doTest("Cat", """ from collections import namedtuple class Cat(namedtuple("Cat", "name age")): pass expr = Cat("name", 5)._make(["newname", 6])"""); doTest("Cat", """ from collections import namedtuple class Cat(namedtuple("Cat", "name age")): pass expr = Cat._make(["newname", 6])"""); }