PageRenderTime 10ms CodeModel.GetById 2ms app.highlight 5ms 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
 1import inherit_missing
 2
 3a = inherit_missing.new_Foo()
 4b = inherit_missing.Bar()
 5c = inherit_missing.Spam()
 6
 7x = inherit_missing.do_blah(a)
 8if x != "Foo::blah":
 9    print "Whoa! Bad return", x
10
11x = inherit_missing.do_blah(b)
12if x != "Bar::blah":
13    print "Whoa! Bad return", x
14
15x = inherit_missing.do_blah(c)
16if x != "Spam::blah":
17    print "Whoa! Bad return", x
18
19inherit_missing.delete_Foo(a)