Пример #1
0
 def unapply(self, g):
     super(JSFunction, self).unapply(g)
     unregister_custom_function(self.node, self.execute_from_sparql)
Пример #2
0
 def test_wrong_unregister_fails(self):
     with assert_raises(ValueError):
         unregister_custom_function(EX.f, lambda x, y: None)
Пример #3
0
 def test_wrong_unregister_fails(self):
     with assert_raises(ValueError):
         unregister_custom_function(EX.f, lambda x, y: None)
Пример #4
0
 def tearDown(self):
     unregister_custom_function(EX.f, self.f)
Пример #5
0
 def tearDown(self):
     unregister_custom_function(EX.f, self.f)