Mercurial > libervia-backend
diff src/test/helpers.py @ 591:65821b3fa7ab
Fix pep8 support in src/test.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 18 Jan 2013 17:55:35 +0100 |
parents | 952322b1d490 |
children | 84a6e83157c2 |
line wrap: on
line diff
--- a/src/test/helpers.py Fri Jan 18 17:55:35 2013 +0100 +++ b/src/test/helpers.py Fri Jan 18 17:55:35 2013 +0100 @@ -26,9 +26,11 @@ 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 @@ def delWaitingSub(self, contact_jid, profile_key): pass + class FakeTriggerManager(object): def add(self, point_name, callback): @@ -84,11 +87,13 @@ """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