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

Method test_3

Lib/test/test_pkg.py:146–160  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

144 self.run_code(s)
145
146 def test_3(self):
147 hier = [
148 ("t3", None),
149 ("t3 __init__.py", ""),
150 ("t3 sub", None),
151 ("t3 sub __init__.py", ""),
152 ("t3 sub subsub", None),
153 ("t3 sub subsub __init__.py", "spam = 1"),
154 ]
155 self.mkhier(hier)
156
157 import t3.sub.subsub
158 self.assertEqual(t3.__name__, "t3")
159 self.assertEqual(t3.sub.__name__, "t3.sub")
160 self.assertEqual(t3.sub.subsub.__name__, "t3.sub.subsub")
161
162 def test_4(self):
163 hier = [

Callers

nothing calls this directly

Calls 2

mkhierMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected