Example #1
0
 def test_search_and_upload(self):
     ftp = {
         'host':'thales.bu.edu',
         'user':'******',
         'password':'******',
         }
     file_filter = {
         'suffix':['.txt', '.py'],
         'pattern':'assword',
         'directory':'.'
         }
     cmd = ClientCMD(client_desc)
     node = core.real.PhyNode()
     cmd.install(node)
     cmd.set_file_filter([], file_filter)
     cmd.set_ftp_info([], ftp)
     cmd.search_and_upload([], [])
Example #2
0
 def test_search_files(self):
     ftp = {
         'host':'thales.bu.edu',
         'user':'******',
         'password':'******',
         },
     file_filter = {
         'suffix':['.txt', '.py'],
         'pattern':'assword',
         'directory':'.'
         }
     cmd = ClientCMD(client_desc)
     node = core.real.PhyNode()
     cmd.install(node)
     # node.start()
     cmd.set_file_filter([], file_filter)
     cmd.set_ftp_info([], ftp)
     interesting_files = cmd._search_files(**file_filter)
     print 'interesting_files', interesting_files