def testHasFile(self): """Test that the ftp client can check if a file exists""" myClient = FtpClient() myFile = "20120726022003.inp.zip" myMessage = "Expected that %s exists on the server" % myFile self.assertTrue(myClient.hasFile(myFile), myMessage)
def testHasFile(self): """Test that the ftp client can check if a file exists""" myClient = FtpClient() myFile = '20120726022003.inp.zip' myMessage = ('Expected that %s exists on the server' % myFile) self.assertTrue(myClient.hasFile(myFile), myMessage)