comparison src/test/test_plugin_misc_radiocol.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 d6bdf6022180
children 4d091738275c
comparison
equal deleted inserted replaced
848:d40306d1da70 849:c5a8f602662b
28 from constants import Const 28 from constants import Const
29 29
30 from twisted.words.protocols.jabber.jid import JID 30 from twisted.words.protocols.jabber.jid import JID
31 from twisted.words.xish import domish 31 from twisted.words.xish import domish
32 from twisted.internet import reactor 32 from twisted.internet import reactor
33 from twisted.internet import defer
33 from twisted.python.failure import Failure 34 from twisted.python.failure import Failure
34 35
35 from mutagen.oggvorbis import OggVorbis 36 from mutagen.oggvorbis import OggVorbis
36 37
37 import uuid 38 import uuid
379 self._playNextSongCb() 380 self._playNextSongCb()
380 381
381 for filename in self.playlist: 382 for filename in self.playlist:
382 self.plugin.deleteFile('/tmp/' + filename) 383 self.plugin.deleteFile('/tmp/' + filename)
383 384
385 return defer.succeed(None)
386
384 def tearDown(self, *args, **kwargs): 387 def tearDown(self, *args, **kwargs):
385 """Clean the reactor""" 388 """Clean the reactor"""
386 helpers.SatTestCase.tearDown(self, *args, **kwargs) 389 helpers.SatTestCase.tearDown(self, *args, **kwargs)
387 for delayed_call in reactor.getDelayedCalls(): 390 for delayed_call in reactor.getDelayedCalls():
388 delayed_call.cancel() 391 delayed_call.cancel()