Remove trailing whitespaces.

This commit is contained in:
Emmanuel Gil Peyrot 2013-01-18 17:55:34 +01:00
commit 27b3592e16

View file

@ -22,8 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import __builtin__
from twisted.words.protocols.jabber.jid import JID
TEST_JID_STR = u"test@example.org/SàT"
TEST_JID = JID(u"test@example.org/SàT")
TEST_JID_STR = u"test@example.org/SàT"
TEST_JID = JID(u"test@example.org/SàT")
TEST_PROFILE = 'test_profile'
class DifferentArgsException(Exception):
@ -35,7 +35,7 @@ class FakeSAT(object):
def __init__(self):
self.bridge = FakeBridge()
self.memory = FakeMemory()
self.trigger = FakeTriggerManager()
self.trigger = FakeTriggerManager()
class FakeBridge(object):
@ -50,7 +50,7 @@ class FakeBridge(object):
print "kwargs\n------\n%s (sent)\n%s (wanted)" % (kwargs, check_kwargs)
print "--------------------\n\n"
raise DifferentArgsException
setattr(self, name, checkCall)
@ -62,16 +62,16 @@ class FakeMemory(object):
def addToHistory(self, from_jid, to_jid, message, _type='chat', timestamp=None, profile=None):
pass
def addContact(self, contact_jid, attributes, groups, profile_key='@DEFAULT@'):
pass
def setPresenceStatus(self, contact_jid, show, priority, statuses, profile_key='@DEFAULT@'):
pass
def addWaitingSub(self, type, contact_jid, profile_key):
pass
def delWaitingSub(self, contact_jid, profile_key):
pass
@ -79,7 +79,7 @@ class FakeTriggerManager(object):
def add(self, point_name, callback):
pass
def point(self, point_name, *args, **kwargs):
"""We always return true to continue the action"""
return True