Lines Matching refs:temp_path
1545 temp_path = pathlib.Path(temp_dir.name)
1546 self.assertTrue(temp_path.exists(),
1547 f"TemporaryDirectory {temp_path!s} does not exist")
1548 with open(temp_path / "a_file.txt", "w+t") as open_file:
1551 self.assertEqual(len(list(temp_path.glob("*"))),
1554 f"TemporaryDirectory {temp_path!s}")
1556 temp_path.exists(),
1558 f"TemporaryDirectory {temp_path!s} existence state unexpected")
1561 temp_path.exists(),
1562 f"TemporaryDirectory {temp_path!s} exists after cleanup")
1701 temp_path = pathlib.Path(temp_dir.name)
1702 self.assertTrue(temp_path.exists(),
1703 f"TemporaryDirectory {temp_path!s} does not exist")
1704 with open(temp_path / "a_file.txt", "w+t") as open_file:
1707 self.assertEqual(len(list(temp_path.glob("*"))),
1710 f"TemporaryDirectory {temp_path!s}")
1712 temp_path.exists(),
1714 f"TemporaryDirectory {temp_path!s} existence state unexpected")
1771 temp_path = pathlib.Path(out.decode().strip())
1772 self.assertEqual(len(list(temp_path.glob("*"))),
1775 f"TemporaryDirectory {temp_path!s}")
1777 temp_path.exists(),
1779 f"TemporaryDirectory {temp_path!s} existence state unexpected")