Пример #1
0
 def delete(cls, instance):
     fire_callback_on_node_delete(instance)
     super(Node, cls).delete(instance)
Пример #2
0
    def test_fire_callback_on_node_delete(self, get_m):
        node = mock.MagicMock()
        fire_callback_on_node_delete(node)

        for ext in get_m.return_value:
            ext.on_node_delete.assert_called_once_with(node)
Пример #3
0
 def delete(cls, instance):
     fire_callback_on_node_delete(instance)
     super(Node, cls).delete(instance)