PageRenderTime 44ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Python | 19 lines | 14 code | 5 blank | 0 comment | 3 complexity | 0e032999981635a155ceab1bbaf122fa MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. import inherit_missing
  2. a = inherit_missing.new_Foo()
  3. b = inherit_missing.Bar()
  4. c = inherit_missing.Spam()
  5. x = inherit_missing.do_blah(a)
  6. if x != "Foo::blah":
  7. print "Whoa! Bad return", x
  8. x = inherit_missing.do_blah(b)
  9. if x != "Bar::blah":
  10. print "Whoa! Bad return", x
  11. x = inherit_missing.do_blah(c)
  12. if x != "Spam::blah":
  13. print "Whoa! Bad return", x
  14. inherit_missing.delete_Foo(a)