swig/Examples/test-suite/python/nested_template_base_runme.py
Jon Schlueter b77f3afafb autopep8 cleanup of Examples/test-suite/python
automated cleanup of python pep8 whitespace compliance
2015-05-08 21:35:52 -04:00

13 lines
326 B
Python

from nested_template_base import *
ois = InnerS(123)
oic = InnerC()
# Check base method is available
if (oic.outer(ois).val != 123):
raise RuntimeError("Wrong value calling outer")
# Check non-derived class using base class
if (oic.innerc().outer(ois).val != 123):
raise RuntimeError("Wrong value calling innerc")