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
def test_has_proper_length(self): self.assertEqual( len(random_file_extension(num_digits=4)), 4)
def test_has_proper_length(self): self.assertEqual(len(random_file_extension(num_digits=4)), 4)