(self)
| 2360 | self.assertRaises(OSError, p.touch, exist_ok=False) |
| 2361 | |
| 2362 | def test_touch_nochange(self): |
| 2363 | P = self.cls(self.base) |
| 2364 | p = P / 'fileA' |
| 2365 | p.touch() |
| 2366 | with p.open('rb') as f: |
| 2367 | self.assertEqual(f.read().strip(), b"this is file A") |
| 2368 | |
| 2369 | def test_mkdir(self): |
| 2370 | P = self.cls(self.base) |