MCPcopy Index your code
hub / github.com/python/cpython / test_normal_win32

Method test_normal_win32

Lib/test/test_getpath.py:23–46  ·  view source on GitHub ↗

Test a 'standard' install layout on Windows.

(self)

Source from the content-addressed store, hash-verified

21 self.maxDiff = None
22
23 def test_normal_win32(self):
24 "Test a 'standard' install layout on Windows."
25 ns = MockNTNamespace(
26 argv0=r"C:\Python\python.exe",
27 real_executable=r"C:\Python\python.exe",
28 )
29 ns.add_known_xfile(r"C:\Python\python.exe")
30 ns.add_known_file(r"C:\Python\Lib\os.py")
31 ns.add_known_dir(r"C:\Python\DLLs")
32 expected = dict(
33 executable=r"C:\Python\python.exe",
34 base_executable=r"C:\Python\python.exe",
35 prefix=r"C:\Python",
36 exec_prefix=r"C:\Python",
37 module_search_paths_set=1,
38 module_search_paths=[
39 r"C:\Python\python98.zip",
40 r"C:\Python\DLLs",
41 r"C:\Python\Lib",
42 r"C:\Python",
43 ],
44 )
45 actual = getpath(ns, expected)
46 self.assertEqual(expected, actual)
47
48 def test_buildtree_win32(self):
49 "Test an in-build-tree layout on Windows."

Callers

nothing calls this directly

Calls 6

add_known_xfileMethod · 0.95
add_known_fileMethod · 0.95
add_known_dirMethod · 0.95
MockNTNamespaceClass · 0.85
getpathFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected