示例#1
0
 def get_fileobj_for_io_writes(self, transfer_future):
     fileobj = transfer_future.meta.call_args.fileobj
     self._final_filename = fileobj
     self._temp_filename = fileobj + os.extsep + random_file_extension()
     self._temp_fileobj = self._get_temp_fileobj()
     return self._temp_fileobj
示例#2
0
 def test_has_proper_length(self):
     self.assertEqual(
         len(random_file_extension(num_digits=4)), 4)
示例#3
0
 def test_has_proper_length(self):
     self.assertEqual(len(random_file_extension(num_digits=4)), 4)
示例#4
0
 def get_fileobj_for_io_writes(self, transfer_future):
     fileobj = transfer_future.meta.call_args.fileobj
     self._final_filename = fileobj
     self._temp_filename = fileobj + os.extsep + random_file_extension()
     self._temp_fileobj = self._get_temp_fileobj()
     return self._temp_fileobj