]> code.delx.au - pymsnt/blobdiff - src/tlib/msn/test_msn.py
Recoding middle-ware wrapper stuff.
[pymsnt] / src / tlib / msn / test_msn.py
index bcf26007febafb89b2f99dd74d876954514cf664..e418875e3f3df60b006095ce7fed0487a5e8d16d 100644 (file)
@@ -146,13 +146,13 @@ class DummyNotificationClient(msn.NotificationClient):
     def gotProfile(self, message):
         self.state = 'PROFILE'
 
-    def gotContactStatus(self, code, userHandle, screenName):
+    def gotContactStatus(self, userHandle, code, screenName):
         if code == msn.STATUS_AWAY and userHandle == "foo@bar.com" and screenName == "Test Screen Name":
             c = self.factory.contacts.getContact(userHandle)
             if c.caps & msn.MSNContact.MSNC1 and c.msnobj:
                 self.state = 'INITSTATUS'
 
-    def contactStatusChanged(self, code, userHandle, screenName):
+    def contactStatusChanged(self, userHandle, code, screenName):
         if code == msn.STATUS_LUNCH and userHandle == "foo@bar.com" and screenName == "Test Name":
             self.state = 'NEWSTATUS'
 
@@ -809,7 +809,7 @@ class DummySwitchboardClient(msn.SwitchboardClient):
         if userHandle == "friend@hotmail.com":
             self.state = 'USERLEFT'
 
-    def userTyping(self, message):
+    def gotContactTyping(self, message):
         if message.userHandle == 'foo@bar.com':
             self.state = 'USERTYPING'