(self)
| 24 | |
| 25 | |
| 26 | def test_overwrite_file_as_file(self): |
| 27 | target = os.path.join(self.testdir, 'test') |
| 28 | self.create_file(target, b'content') |
| 29 | with self.open(self.ar_with_file) as ar: |
| 30 | self.extractall(ar) |
| 31 | self.assertTrue(os.path.isfile(target)) |
| 32 | with open(target, 'rb') as f: |
| 33 | self.assertEqual(f.read(), b'newcontent') |
| 34 | |
| 35 | def test_overwrite_dir_as_dir(self): |
| 36 | target = os.path.join(self.testdir, 'test') |
nothing calls this directly
no test coverage detected