/tags/rel-1-3-26/SWIG/Examples/test-suite/python/template_extend1_runme.py
Python | 10 lines | 7 code | 3 blank | 0 comment | 2 complexity | b0732d02de27674b6d65f80b57e9d6e3 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- import template_extend1
- a = template_extend1.lBaz()
- b = template_extend1.dBaz()
- if a.foo() != "lBaz::foo":
- raise RuntimeError
- if b.foo() != "dBaz::foo":
- raise RuntimeError