PageRenderTime 402ms CodeModel.GetById 37ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Python | 13 lines | 9 code | 4 blank | 0 comment | 3 complexity | 0552692bcf0b1b431e788179f69bdd3b MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. from using_private import *
  2. f = FooBar()
  3. f.x = 3
  4. if f.blah(4) != 4:
  5. raise RuntimeError, "blah(int)"
  6. if f.defaulted() != -1:
  7. raise RuntimeError, "defaulted()"
  8. if f.defaulted(222) != 222:
  9. raise RuntimeError, "defaulted(222)"