def test_error_on_directory_to_FileLink():
 td = mkdtemp()
 nt.assert_raises(ValueError, display.FileLink, td)

def test_error_on_directory_to_FileLink ( ) : td = mkdtemp ( ) nt . assert_raises ( ValueError , display . FileLink , td )
filelink: raises error when passed directory .