MCPcopy Index your code
hub / github.com/aws/aws-cli / test_main

Method test_main

tests/unit/s3transfer/test_download.py:970–982  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

968
969class TestIORenameFileTask(BaseIOTaskTest):
970 def test_main(self):
971 with open(self.temp_filename, 'wb') as f:
972 task = self.get_task(
973 IORenameFileTask,
974 main_kwargs={
975 'fileobj': f,
976 'final_filename': self.final_filename,
977 'osutil': self.osutil,
978 },
979 )
980 task()
981 self.assertTrue(os.path.exists(self.final_filename))
982 self.assertFalse(os.path.exists(self.temp_filename))
983
984
985class TestIOCloseTask(BaseIOTaskTest):

Callers

nothing calls this directly

Calls 2

existsMethod · 0.80
get_taskMethod · 0.45

Tested by

no test coverage detected