plugin room_game, radiocol: RoomGame.send returns a Deferred.

This commit is contained in:
souliane 2014-02-18 17:49:33 +01:00
commit 7c29b8c566

View file

@ -313,6 +313,7 @@ class FakeXmlStream(object):
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 @@ class FakeClient(object):
self.xmlstream = FakeXmlStream()
def send(self, obj):
self.xmlstream.send(obj)
return self.xmlstream.send(obj)
class SatTestCase(unittest.TestCase):