From 05b440de6026b54f46162d5f977606e5feec7f97 Mon Sep 17 00:00:00 2001 From: Erik Allik Date: Mon, 27 Aug 2012 09:57:43 +0300 Subject: [PATCH] WIP --- unnamedframework/actor/__init__.py | 1 + unnamedframework/tests/actor_test.py | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/unnamedframework/actor/__init__.py b/unnamedframework/actor/__init__.py index 1f65670..1cc0667 100644 --- a/unnamedframework/actor/__init__.py +++ b/unnamedframework/actor/__init__.py @@ -1,2 +1,3 @@ from _actor import * +from temp import spawn_tmp # from . import comm diff --git a/unnamedframework/tests/actor_test.py b/unnamedframework/tests/actor_test.py index ae95b3b..85cb196 100644 --- a/unnamedframework/tests/actor_test.py +++ b/unnamedframework/tests/actor_test.py @@ -1148,6 +1148,29 @@ def test_TODO_stopped_actors_remote_refs_are_optimised(): pass +## +## TEMPORARY ACTORS, FUTURES & PIPING + +def test_TODO_test_temporary_actor(): + pass + # random_msg = 'dummy-%r' % random.random() + + # tmp_actor, tmp_d = spawn_tmp(Deferred()) + + # d = Events.consume_one(TopLevelActorTerminated) + # tmp_actor << random_msg + # assert not d.called + + # eq_(deferred_result(tmp_d), random_msg) + + # with assert_one_event(DeadLetter): + # tmp_actor << 'another-message' + + +def test_TODO_test_temporary_actor_with_remoting(): + pass + + ## ## SUPERVISION & ERROR HANDLING