Beispiel #1
0
 def test_validate_base_dir_fail(self, mock_exit: Mock) -> None:
     ptr._validate_base_dir(gettempdir() + "6969")
     mock_exit.assert_called_once()
Beispiel #2
0
 def test_validate_base_dir(self) -> None:
     path_str = gettempdir()
     expected_path = Path(path_str)
     self.assertEqual(ptr._validate_base_dir(path_str), expected_path)