def test_existing_path_FileLink_repr():
 tf = NamedTemporaryFile()
 fl = display.FileLink(tf.name)
 actual = repr(fl)
 expected = tf.name
 nt.assert_equal(actual, expected)

def test_existing_path_FileLink_repr ( ) : tf = NamedTemporaryFile ( ) fl = display . FileLink ( tf . name ) actual = repr ( fl ) expected = tf . name nt . assert_equal ( actual , expected )
filelink: calling repr() functions as expected on existing filepath .