1 2 3 4 5 6 7 8
from fvirtual import * sw = NodeSwitch() n = Node() i = sw.addChild(n) if i != 2: raise RuntimeError, "addChild"