FileLink: Calling repr() functions as expected on existing filepath
()
| 63 | nt.assert_equal(actual,expected) |
| 64 | |
| 65 | def 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 | |
| 74 | def test_error_on_directory_to_FileLink(): |
| 75 | """FileLink: Raises error when passed directory |
nothing calls this directly
no outgoing calls
no test coverage detected