1 2 3 4 5 6 7 8 9 10
import template_extend2 a = template_extend2.lBaz() b = template_extend2.dBaz() if a.foo() != "lBaz::foo": raise RuntimeError if b.foo() != "dBaz::foo": raise RuntimeError