swig/Examples/test-suite/python/smart_pointer_extend_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

32 lines
433 B
Python

from smart_pointer_extend import *
f = Foo()
b = Bar(f)
if b.extension() != f.extension():
raise RuntimeError
b = CBase()
d = CDerived()
p = CPtr()
if b.bar() != p.bar():
raise RuntimeError
if d.foo() != p.foo():
raise RuntimeError
if b.hello() != p.hello():
raise RuntimeError
d = DFoo()
dp = DPtrFoo(d)
if d.SExt(1) != dp.SExt(1):
raise RuntimeError
if d.Ext(1) != dp.Ext(1):
raise RuntimeError