Exemple #1
0
 def test_auth_list_wildcard(self):
     # Create some files that should NOT be listed:
     for i in range(10):
         file(os.path.join(FTP_HOME, 'exclude' + str(i)), 'w')
     listed_items = []
     for item in transfers.list(self.url + 'remote*', auth=(FTP_USERNAME, FTP_PASSWORD)):
         listed_items.append(item)
     self.assertEqual(listed_items, ['remote' + str(i) for i in range(10)])
Exemple #2
0
 def test_auth_list_dir(self):
     listed_items = []
     for item in transfers.list(self.url, auth=(FTP_USERNAME, FTP_PASSWORD)):
         listed_items.append(item)
     self.assertEqual(listed_items, ['remote' + str(i) for i in range(10)])
Exemple #3
0
 def test_anon_list(self):
     listed_items = []
     for item in transfers.list(self.url):
         listed_items.append(item)
     self.assertEqual(listed_items, ['remote' + str(i) for i in range(10)])