These tests were converted using 2to3 and should be valid using Python 2.7 and Python 3+.
8 lines
119 B
Python
8 lines
119 B
Python
from fvirtual import *
|
|
|
|
sw = NodeSwitch()
|
|
n = Node()
|
|
i = sw.addChild(n)
|
|
|
|
if i != 2:
|
|
raise RuntimeError("addChild")
|