Test a 'standard' install layout on *nix
(self)
| 266 | self.assertEqual(expected, actual) |
| 267 | |
| 268 | def test_normal_posix(self): |
| 269 | "Test a 'standard' install layout on *nix" |
| 270 | ns = MockPosixNamespace( |
| 271 | PREFIX="/usr", |
| 272 | argv0="python", |
| 273 | ENV_PATH="/usr/bin", |
| 274 | ) |
| 275 | ns.add_known_xfile("/usr/bin/python") |
| 276 | ns.add_known_file("/usr/lib/python9.8/os.py") |
| 277 | ns.add_known_dir("/usr/lib/python9.8/lib-dynload") |
| 278 | expected = dict( |
| 279 | executable="/usr/bin/python", |
| 280 | base_executable="/usr/bin/python", |
| 281 | prefix="/usr", |
| 282 | exec_prefix="/usr", |
| 283 | module_search_paths_set=1, |
| 284 | module_search_paths=[ |
| 285 | "/usr/lib/python98.zip", |
| 286 | "/usr/lib/python9.8", |
| 287 | "/usr/lib/python9.8/lib-dynload", |
| 288 | ], |
| 289 | ) |
| 290 | actual = getpath(ns, expected) |
| 291 | self.assertEqual(expected, actual) |
| 292 | |
| 293 | def test_buildpath_posix(self): |
| 294 | """Test an in-build-tree layout on POSIX. |
nothing calls this directly
no test coverage detected