Mercurial > libervia-backend
diff src/test/test_core_xmpp.py @ 587:952322b1d490
Remove trailing whitespaces.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 18 Jan 2013 17:55:34 +0100 |
parents | ca13633d3b6b |
children | 65821b3fa7ab |
line wrap: on
line diff
--- a/src/test/test_core_xmpp.py Fri Jan 18 17:55:27 2013 +0100 +++ b/src/test/test_core_xmpp.py Fri Jan 18 17:55:34 2013 +0100 @@ -34,8 +34,8 @@ def setUp(self): self.host = helpers.FakeSAT() - self.client = xmpp.SatXMPPClient(self.host, "test_profile", JID("test@example.org"), "test") - + self.client = xmpp.SatXMPPClient(self.host, "test_profile", JID("test@example.org"), "test") + def test_init(self): """Check that init values are correctly initialised""" self.assertEqual(self.client.profile, "test_profile") @@ -59,7 +59,7 @@ stanza = parseXml(xml) self.host.bridge.expectCall("newMessage", "sender@example.net/house", "test", "chat", u"test@example.org/SàT", profile="test_profile") self.message.onMessage(stanza) - + class SatRosterProtocolTest(unittest.TestCase): def setUp(self): @@ -99,16 +99,16 @@ def test_subscribedReceived(self): self.host.bridge.expectCall("subscribe", "subscribed", helpers.TEST_JID.userhost(), helpers.TEST_PROFILE) self.presence.subscribedReceived(helpers.TEST_JID) - + def test_unsubscribedReceived(self): self.host.bridge.expectCall("subscribe", "unsubscribed", helpers.TEST_JID.userhost(), helpers.TEST_PROFILE) self.presence.unsubscribedReceived(helpers.TEST_JID) - + def test_subscribeReceived(self): self.host.bridge.expectCall("subscribe", "subscribe", helpers.TEST_JID.userhost(), helpers.TEST_PROFILE) self.presence.subscribeReceived(helpers.TEST_JID) - + def test_unsubscribeReceived(self): self.host.bridge.expectCall("subscribe", "unsubscribe", helpers.TEST_JID.userhost(), helpers.TEST_PROFILE) self.presence.unsubscribeReceived(helpers.TEST_JID) - +