Exemple #1
0
 def test_file_transfer_handler(self):
     fth = FileTransferHandler()
     fth.init_attributes()
     assert fth.get_open_env()
     caps = typedict()
     fth.parse_file_transfer_caps(caps)
     assert fth.get_info()
     fth.cleanup()
Exemple #2
0
 def cleanup(self):
     FileTransferHandler.cleanup(self)
     reaper_cleanup()
     p = self._protocol
     log("XpraClientBase.cleanup() protocol=%s", p)
     if p:
         log("calling %s", p.close)
         p.close()
         self._protocol = None
     self.cleanup_printing()
     log("cleanup done")
     dump_all_frames()
Exemple #3
0
 def cleanup(self):
     reaper_cleanup()
     #we must clean printing before FileTransferHandler, which turns the printing flag off!
     self.cleanup_printing()
     FileTransferHandler.cleanup(self)
     p = self._protocol
     log("XpraClientBase.cleanup() protocol=%s", p)
     if p:
         log("calling %s", p.close)
         p.close()
         self._protocol = None
     log("cleanup done")
     dump_all_frames()
Exemple #4
0
 def cleanup(self):
     reaper_cleanup()
     # we must clean printing before FileTransferHandler, which turns the printing flag off!
     self.cleanup_printing()
     FileTransferHandler.cleanup(self)
     p = self._protocol
     log("XpraClientBase.cleanup() protocol=%s", p)
     if p:
         log("calling %s", p.close)
         p.close()
         self._protocol = None
     log("cleanup done")
     dump_all_frames()
 def test_file_transfer_handler(self):
     fth = FileTransferHandler()
     fth.init_attributes()
     assert fth.get_open_env()
     caps = typedict()
     fth.parse_file_transfer_caps(caps)
     assert fth.get_info()
     fth.check_digest("foo", "000", "000", "xor")
     try:
         fth.check_digest("foo", "000", "001", "sha1")
     except Exception:
         pass
     else:
         raise Exception("digest mismatch should trigger an exception!")
     fth.cleanup()
Exemple #6
0
 def cleanup(self):
     #we must clean printing before FileTransferHandler, which turns the printing flag off!
     self.cleanup_printing()
     FileTransferHandler.cleanup(self)