plugin room_game, radiocol: RoomGame.send returns a Deferred.
This commit is contained in:
parent
3de25fd781
commit
7c29b8c566
1 changed files with 16 additions and 13 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue