PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms 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
 1from using_private import *
 2
 3f = FooBar()
 4f.x = 3
 5
 6if f.blah(4) != 4:
 7    raise RuntimeError, "blah(int)"
 8
 9if f.defaulted() != -1:
10    raise RuntimeError, "defaulted()"
11
12if f.defaulted(222) != 222:
13    raise RuntimeError, "defaulted(222)"