1 2 3 4 5 6 7 8
from using_inherit import * b = Bar() if b.test(3) != 3: raise RuntimeError,"test(int)" if b.test(3.5) != 3.5: raise RuntimeError, "test(double)"