self.failUnless(self.loop.doSteps(10), 'Failed to disconnect')
self.failUnless((self.client.test == 'PASS'), 'Failed to change privacy mode')
- def testSyncList(self):
- self.client.doSyncList()
- self.failUnless(self.loop.doSteps(10), 'Failed to disconnect')
- self.failUnless((self.client.test == 'PASS'), 'Failed to synchronise list')
- testSyncList.skip = "Will do after list versions."
-
def testAddContactFL(self):
self.client.factory.contacts = msn.MSNContactList()
self.client.doAddContactFL()
# MSNFTP tests #
################
-class FileTransferTestCase(unittest.TestCase):
- """ test FileSend against FileReceive """
- skip = "Not implemented"
-
- def setUp(self):
- self.input = StringIOWithoutClosing()
- self.input.writelines(['a'] * 7000)
- self.input.seek(0)
- self.output = StringIOWithoutClosing()
-
- def tearDown(self):
- self.input = None
- self.output = None
-
- def testFileTransfer(self):
- auth = 1234
- sender = msnft.MSNFTP_FileSend(self.input)
- sender.auth = auth
- sender.fileSize = 7000
- client = msnft.MSNFTP_FileReceive(auth, "foo@bar.com", self.output)
- client.fileSize = 7000
- loop = LoopbackCon(client, sender)
- loop.doSteps(100)
- self.failUnless((client.completed and sender.completed), "send failed to complete")
- self.failUnless((self.input.getvalue() == self.output.getvalue()), "saved file does not match original")
+#class FileTransferTestCase(unittest.TestCase):
+# """ test FileSend against FileReceive """
+# skip = "Not implemented"
+#
+# def setUp(self):
+# self.input = StringIOWithoutClosing()
+# self.input.writelines(['a'] * 7000)
+# self.input.seek(0)
+# self.output = StringIOWithoutClosing()
+#
+# def tearDown(self):
+# self.input = None
+# self.output = None
+#
+# def testFileTransfer(self):
+# auth = 1234
+# sender = msnft.MSNFTP_FileSend(self.input)
+# sender.auth = auth
+# sender.fileSize = 7000
+# client = msnft.MSNFTP_FileReceive(auth, "foo@bar.com", self.output)
+# client.fileSize = 7000
+# loop = LoopbackCon(client, sender)
+# loop.doSteps(100)
+# self.failUnless((client.completed and sender.completed), "send failed to complete")
+# self.failUnless((self.input.getvalue() == self.output.getvalue()), "saved file does not match original")