From d71899696ab30c76a220a9fe444fc577a246a978 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Tue, 21 Jul 2015 17:38:06 +0200 Subject: tests: test_rpc: Create connection for the current thread Both context.xmlclient and context.xmlclient_ need to be created in order to successfully call the Command.forward method. Reviewed-By: Martin Basti --- ipatests/test_ipalib/test_rpc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ipatests/test_ipalib/test_rpc.py b/ipatests/test_ipalib/test_rpc.py index 74a7639c9..b61337474 100644 --- a/ipatests/test_ipalib/test_rpc.py +++ b/ipatests/test_ipalib/test_rpc.py @@ -229,6 +229,9 @@ class test_xmlclient(PluginTester): ), ) + + # Create connection for the current thread + setattr(context, o.id, Connection(conn, lambda: None)) context.xmlclient = Connection(conn, lambda: None) # Test with a successful return value: -- cgit