These tests were converted using 2to3 and should be valid using Python 2.7 and Python 3+.
13 lines
239 B
Python
13 lines
239 B
Python
from using_private import *
|
|
|
|
f = FooBar()
|
|
f.x = 3
|
|
|
|
if f.blah(4) != 4:
|
|
raise RuntimeError("blah(int)")
|
|
|
|
if f.defaulted() != -1:
|
|
raise RuntimeError("defaulted()")
|
|
|
|
if f.defaulted(222) != 222:
|
|
raise RuntimeError("defaulted(222)")
|