def unapply(self, g): super(JSFunction, self).unapply(g) unregister_custom_function(self.node, self.execute_from_sparql)
def test_wrong_unregister_fails(self): with assert_raises(ValueError): unregister_custom_function(EX.f, lambda x, y: None)
def tearDown(self): unregister_custom_function(EX.f, self.f)