PageRenderTime 41ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/test-suite/python/enums_runme.py

#
Python | 19 lines | 12 code | 7 blank | 0 comment | 4 complexity | 369a7fdda8cbe2adae3ac10448229729 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. import _enums
  2. _enums.bar2(1)
  3. _enums.bar3(1)
  4. _enums.bar1(1)
  5. if _enums.cvar.enumInstance != 2:
  6. raise RuntimeError
  7. if _enums.cvar.Slap != 10:
  8. raise RuntimeError
  9. if _enums.cvar.Mine != 11:
  10. raise RuntimeError
  11. if _enums.cvar.Thigh != 12:
  12. raise RuntimeError