Ejemplo n.º 1
0
 def unapply(self, g):
     super(JSFunction, self).unapply(g)
     unregister_custom_function(self.node, self.execute_from_sparql)
Ejemplo n.º 2
0
 def test_wrong_unregister_fails(self):
     with assert_raises(ValueError):
         unregister_custom_function(EX.f, lambda x, y: None)
Ejemplo n.º 3
0
 def test_wrong_unregister_fails(self):
     with assert_raises(ValueError):
         unregister_custom_function(EX.f, lambda x, y: None)
Ejemplo n.º 4
0
 def tearDown(self):
     unregister_custom_function(EX.f, self.f)
Ejemplo n.º 5
0
 def tearDown(self):
     unregister_custom_function(EX.f, self.f)