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

Function test_error_on_file_to_FileLinks

IPython/lib/tests/test_display.py:164–169  ·  view source on GitHub ↗

FileLinks: Raises error when passed file

()

Source from the content-addressed store, hash-verified

162 nt.assert_equal(actual,expected)
163
164def test_error_on_file_to_FileLinks():
165 """FileLinks: Raises error when passed file
166 """
167 td = mkdtemp()
168 tf1 = NamedTemporaryFile(dir=td)
169 nt.assert_raises(ValueError,display.FileLinks,tf1.name)
170
171def test_recursive_FileLinks():
172 """FileLinks: Does not recurse when recursive=False

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected