FileLinks: Does not recurse when recursive=False
()
| 169 | nt.assert_raises(ValueError,display.FileLinks,tf1.name) |
| 170 | |
| 171 | def test_recursive_FileLinks(): |
| 172 | """FileLinks: Does not recurse when recursive=False |
| 173 | """ |
| 174 | td = mkdtemp() |
| 175 | tf = NamedTemporaryFile(dir=td) |
| 176 | subtd = mkdtemp(dir=td) |
| 177 | subtf = NamedTemporaryFile(dir=subtd) |
| 178 | fl = display.FileLinks(td) |
| 179 | actual = str(fl) |
| 180 | actual = actual.split('\n') |
| 181 | nt.assert_equal(len(actual), 4, actual) |
| 182 | fl = display.FileLinks(td, recursive=False) |
| 183 | actual = str(fl) |
| 184 | actual = actual.split('\n') |
| 185 | nt.assert_equal(len(actual), 2, actual) |
| 186 | |
| 187 | def test_audio_from_file(): |
| 188 | path = pjoin(dirname(__file__), 'test.wav') |
nothing calls this directly
no outgoing calls
no test coverage detected