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

Function test_existing_path_FileLink_repr

IPython/lib/tests/test_display.py:65–72  ·  view source on GitHub ↗

FileLink: Calling repr() functions as expected on existing filepath

()

Source from the content-addressed store, hash-verified

63 nt.assert_equal(actual,expected)
64
65def test_existing_path_FileLink_repr():
66 """FileLink: Calling repr() functions as expected on existing filepath
67 """
68 tf = NamedTemporaryFile()
69 fl = display.FileLink(tf.name)
70 actual = repr(fl)
71 expected = tf.name
72 nt.assert_equal(actual,expected)
73
74def test_error_on_directory_to_FileLink():
75 """FileLink: Raises error when passed directory

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected