Fix pep8 support in src/test.

This commit is contained in:
Emmanuel Gil Peyrot 2013-01-18 17:55:35 +01:00
commit 5b54be83bd

View file

@ -26,9 +26,11 @@ 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):
pass
class FakeSAT(object):
"""Class to simulate a SAT instance"""
@ -75,6 +77,7 @@ class FakeMemory(object):
def delWaitingSub(self, contact_jid, profile_key):
pass
class FakeTriggerManager(object):
def add(self, point_name, callback):
@ -84,11 +87,13 @@ class FakeTriggerManager(object):
"""We always return true to continue the action"""
return True
class FakeParent(object):
def __init__(self):
self.profile = 'test_profile'
self.jid = TEST_JID
def _(text):
return text