def test_sanity_derived_neg():
 global EVENT_COUNT
 EVENT_COUNT = 0
 class PySubclass(CEvent40, ):
  def add_Act(self, value):
   self.Act += value
  def remove_Act(self, value):
   self.Act -= value
  def call(self):
   self.Act(1, 2)
 x = PySubclass()
 def f(x, y):
  EVENT_COUNT += 1
  print x, y
 x.add_Act(f)
 AssertErrorWithMessage(TypeError, 'BoundEvent is not callable', x.call)

def test_sanity_derived_neg ( ) : global EVENT_COUNT EVENT_COUNT = 0 class PySubclass ( CEvent40 , ) : def add_Act ( self , value ) : self . Act += value def remove_Act ( self , value ) : self . Act -= value def call ( self ) : self . Act ( 1 , 2 ) x = PySubclass ( ) def f ( x , y ) : EVENT_COUNT += 1 print x , y x . add_Act ( f ) AssertErrorWithMessage ( TypeError , 'BoundEvent is not callable' , x . call )
the snippet below does not work and the related bug .