| 176 | [os.path.join(IO_DATA_TXTX_OSS, i) for i in ['a.txt', 'b.txt']]) |
| 177 | |
| 178 | def test_exist_middle_dirs(self): |
| 179 | tmp_dir = os.path.join(TMP_DIR_OSS, uuid.uuid4().hex) |
| 180 | io.copytree(IO_DATA_TXTX_OSS, os.path.join(tmp_dir, 'tmp1/tmp2/tmp3')) |
| 181 | |
| 182 | self.assertTrue(io.exists(os.path.join(tmp_dir, 'tmp1'))) |
| 183 | self.assertTrue(io.exists(os.path.join(tmp_dir, 'tmp1/tmp2/'))) |
| 184 | self.assertTrue(io.exists(os.path.join(tmp_dir, 'tmp1/tmp2/tmp3'))) |
| 185 | self.assertTrue( |
| 186 | io.exists(os.path.join(tmp_dir, 'tmp1/tmp2/tmp3/a.txt'))) |
| 187 | |
| 188 | io.remove(tmp_dir) |
| 189 | |
| 190 | |
| 191 | class IOForLocalTest(unittest.TestCase): |