Example #1
0
 def test_download(self):
   file_list = ['/blast/db/FASTA/alu.n.gz.md5']
   ftpd = DirectFTPDownload('ftp', 'ftp.ncbi.nih.gov', '', file_list)
   (file_list, dir_list) = ftpd.list()
   ftpd.download(self.utils.data_dir, False)
   ftpd.close()
   self.assertTrue(os.path.exists(os.path.join(self.utils.data_dir,'alu.n.gz.md5')))
Example #2
0
 def test_download(self):
     file_list = ["/blast/db/FASTA/alu.n.gz.md5"]
     ftpd = DirectFTPDownload("ftp", "ftp.ncbi.nih.gov", "", file_list)
     (file_list, dir_list) = ftpd.list()
     ftpd.download(self.utils.data_dir, False)
     ftpd.close()
     self.assertTrue(os.path.exists(os.path.join(self.utils.data_dir, "alu.n.gz.md5")))
Example #3
0
 def test_download(self):
     file_list = ['/blast/db/FASTA/alu.n.gz.md5']
     ftpd = DirectFTPDownload('ftp', 'ftp.ncbi.nih.gov', '', file_list)
     (file_list, dir_list) = ftpd.list()
     ftpd.download(self.utils.data_dir, False)
     ftpd.close()
     self.assertTrue(
         os.path.exists(os.path.join(self.utils.data_dir, 'alu.n.gz.md5')))
Example #4
0
 def test_ftp_list(self):
     file_list = ['/blast/db/FASTA/alu.n.gz.md5']
     ftpd = DirectFTPDownload('ftp', 'ftp.ncbi.nih.gov', '', file_list)
     (file_list, dir_list) = ftpd.list()
     ftpd.close()
     self.assertTrue(len(file_list) == 1)
Example #5
0
 def test_ftp_list(self):
   file_list = ['/blast/db/FASTA/alu.n.gz.md5']
   ftpd = DirectFTPDownload('ftp', 'ftp.ncbi.nih.gov', '', file_list)
   (file_list, dir_list) = ftpd.list()
   ftpd.close()
   self.assertTrue(len(file_list) == 1)
Example #6
0
 def test_ftp_list(self):
     file_list = ["/blast/db/FASTA/alu.n.gz.md5"]
     ftpd = DirectFTPDownload("ftp", "ftp.ncbi.nih.gov", "", file_list)
     (file_list, dir_list) = ftpd.list()
     ftpd.close()
     self.assertTrue(len(file_list) == 1)