def test_error_on_file_to_FileLinks():
 td = mkdtemp()
 tf1 = NamedTemporaryFile(dir=td)
 nt.assert_raises(ValueError, display.FileLinks, tf1.name)

def test_error_on_file_to_FileLinks ( ) : td = mkdtemp ( ) tf1 = NamedTemporaryFile ( dir = td ) nt . assert_raises ( ValueError , display . FileLinks , tf1 . name )
filelinks: raises error when passed file .