(self)
| 2351 | self.assertRaises(OSError, p.touch, exist_ok=False) |
| 2352 | |
| 2353 | def test_touch_nochange(self): |
| 2354 | P = self.cls(self.base) |
| 2355 | p = P / 'fileA' |
| 2356 | p.touch() |
| 2357 | with p.open('rb') as f: |
| 2358 | self.assertEqual(f.read().strip(), b"this is file A") |
| 2359 | |
| 2360 | def test_mkdir(self): |
| 2361 | P = self.cls(self.base) |