(self, path)
| 402 | self.assertFalse(os.path.exists(fn)) |
| 403 | |
| 404 | def clear_directory(self, path): |
| 405 | for fn in os.listdir(path): |
| 406 | fn = os.path.join(path, fn) |
| 407 | if os.path.islink(fn) or os.path.isfile(fn): |
| 408 | os.remove(fn) |
| 409 | elif os.path.isdir(fn): |
| 410 | rmtree(fn) |
| 411 | |
| 412 | def test_unoverwritable_fails(self): |
| 413 | #create a file clashing with directories in the env dir |