MCPcopy Create free account
hub / github.com/ipython/ipython / test_recursive_FileLinks

Function test_recursive_FileLinks

IPython/lib/tests/test_display.py:171–185  ·  view source on GitHub ↗

FileLinks: Does not recurse when recursive=False

()

Source from the content-addressed store, hash-verified

169 nt.assert_raises(ValueError,display.FileLinks,tf1.name)
170
171def test_recursive_FileLinks():
172 """FileLinks: Does not recurse when recursive=False
173 """
174 td = mkdtemp()
175 tf = NamedTemporaryFile(dir=td)
176 subtd = mkdtemp(dir=td)
177 subtf = NamedTemporaryFile(dir=subtd)
178 fl = display.FileLinks(td)
179 actual = str(fl)
180 actual = actual.split('\n')
181 nt.assert_equal(len(actual), 4, actual)
182 fl = display.FileLinks(td, recursive=False)
183 actual = str(fl)
184 actual = actual.split('\n')
185 nt.assert_equal(len(actual), 2, actual)
186
187def test_audio_from_file():
188 path = pjoin(dirname(__file__), 'test.wav')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected