def testHasFiles(self): """Test that the ftp client can check if a list of file exists""" myClient = FtpClient() myFiles = ["20120726022003.inp.zip", "20120726022003.out.zip"] myMessage = "Expected that %s exist on the server" % myFiles self.assertTrue(myClient.hasFiles(myFiles), myMessage)
def testHasFiles(self): """Test that the ftp client can check if a list of file exists""" myClient = FtpClient() myFiles = ['20120726022003.inp.zip', '20120726022003.out.zip'] myMessage = ('Expected that %s exist on the server' % myFiles) self.assertTrue(myClient.hasFiles(myFiles), myMessage)