(self, tmp_path)
| 207 | assert_(invalidhttp != ds.abspath(valid_httpurl())) |
| 208 | |
| 209 | def test_InvalidFile(self, tmp_path): |
| 210 | ds = datasource.DataSource(tmp_path) |
| 211 | invalidfile = valid_textfile(tmp_path) |
| 212 | tmpfile = valid_textfile(tmp_path) |
| 213 | tmpfilename = os.path.split(tmpfile)[-1] |
| 214 | # Test with filename only |
| 215 | assert_(invalidfile != ds.abspath(tmpfilename)) |
| 216 | # Test filename with complete path |
| 217 | assert_(invalidfile != ds.abspath(tmpfile)) |
| 218 | |
| 219 | def test_sandboxing(self, tmp_path): |
| 220 | ds = datasource.DataSource(tmp_path) |
no test coverage detected