NO-JIRA: Add handler event root tests

Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/5598d501
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/5598d501
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/5598d501

Branch: refs/heads/proton-go
Commit: 5598d501fe228c48680e8d08c2381042ae2355cb
Parents: f9e9ca9
Author: Bozo Dragojevic <bo...@digiverse.si>
Authored: Mon Sep 28 10:50:07 2015 +0200
Committer: Bozo Dragojevic <bo...@digiverse.si>
Committed: Mon Sep 28 13:01:25 2015 +0200

----------------------------------------------------------------------
 tests/python/proton_tests/handler.py | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/5598d501/tests/python/proton_tests/handler.py
----------------------------------------------------------------------
diff --git a/tests/python/proton_tests/handler.py 
b/tests/python/proton_tests/handler.py
index b64e898..c7210f4 100644
--- a/tests/python/proton_tests/handler.py
+++ b/tests/python/proton_tests/handler.py
@@ -98,6 +98,9 @@ class HandlerTest(common.Test):
   def append_root(self, reactor, root):
     reactor.handler.handlers.append(root)
     
+  def event_root(self, event):
+    return event.root
+  
   def event_reactor_handler(self, event):
     return event.reactor.handler
 
@@ -110,3 +113,11 @@ class HandlerTest(common.Test):
   def test_append_handler(self):
     self.do_customEvent(self.append_root, self.event_reactor_handler)
 
+  def test_set_root(self):
+    self.do_customEvent(self.set_root, self.event_root)
+
+  def test_add_root(self):
+    self.do_customEvent(self.add_root, self.event_root)
+
+  def test_append_root(self):
+    self.do_customEvent(self.append_root, self.event_root)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to