#from thisRCPPy import *
from parfem.thisRCPPy import *

print '\ntestcase for thisRCP as set from C++:'
j = JDer()
assert j.getThisRCP() is not None
j = j.getThisRCP()
print j.foo();
del j

print '\ntestcase for thisRCP as from python extended class:'
class IDer(I):
  def __init__(self):
    I.__init__(self)
    self.setThisRCP(self)

i = IDer()
assert i.getThisRCP() is not None

