/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

  1. import template_extend1
  2. a = template_extend1.lBaz()
  3. b = template_extend1.dBaz()
  4. if a.foo() != "lBaz::foo":
  5. raise RuntimeError
  6. if b.foo() != "dBaz::foo":
  7. raise RuntimeError