コード例 #1
0
ファイル: test_ftp_client.py プロジェクト: vdeparday/inasafe
 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)
コード例 #2
0
ファイル: test_ftp_client.py プロジェクト: vdeparday/inasafe
 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)