swig/Examples/test-suite/python/varargs_runme.py

12 lines
239 B
Python

import varargs
if varargs.test("Hello") != "Hello":
raise RuntimeError, "Failed"
f = varargs.Foo("Greetings")
if f.str != "Greetings":
raise RuntimeError, "Failed"
if f.test("Hello") != "Hello":
raise RuntimeError, "Failed"