def test_node_functions(self):
        self.q = Queue.Queue()

        def cb(key, value):
            self.q.put({"key": key, "value": value})

        node = TestNode("127.0.0.1:5000")
        self.storage.add_node(node)
        value = self.storage.get_node(node_id=node.id, cb=CalvinCB(func=cb))
        value = self.q.get(timeout=0.2)
        assert value["key"] == node.id and value["value"] == {'uri': node.uri}

        self.storage.delete_node(node, cb=CalvinCB(func=cb))
        value = self.q.get(timeout=0.2)
        assert value
        assert node.id not in self.storage.localstore
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/tests/test_storage.py/TestStorageNotStarted.test_node_functions/original