diff src/test/helpers.py @ 849:c5a8f602662b

plugin room_game, radiocol: RoomGame.send returns a Deferred.
author souliane <souliane@mailoo.org>
date Tue, 18 Feb 2014 17:49:33 +0100
parents 9bac2fc74968
children 64ec04991d9d
line wrap: on
line diff
--- a/src/test/helpers.py	Tue Feb 18 16:24:19 2014 +0100
+++ b/src/test/helpers.py	Tue Feb 18 17:49:33 2014 +0100
@@ -313,6 +313,7 @@
     def send(self, obj):
         """Save the sent messages to compare them later"""
         self.sent.append(obj)
+        return defer.succeed(None)
 
 
 class FakeClient(object):
@@ -327,7 +328,7 @@
         self.xmlstream = FakeXmlStream()
 
     def send(self, obj):
-        self.xmlstream.send(obj)
+        return self.xmlstream.send(obj)
 
 
 class SatTestCase(unittest.TestCase):