PageRenderTime 30ms CodeModel.GetById 6ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  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