(self, tmp_path)
| 191 | assert_equal(local_path, ds.abspath(valid_httpurl())) |
| 192 | |
| 193 | def test_ValidFile(self, tmp_path): |
| 194 | ds = datasource.DataSource(tmp_path) |
| 195 | tmpfile = valid_textfile(tmp_path) |
| 196 | tmpfilename = os.path.split(tmpfile)[-1] |
| 197 | # Test with filename only |
| 198 | assert_equal(tmpfile, ds.abspath(tmpfilename)) |
| 199 | # Test filename with complete path |
| 200 | assert_equal(tmpfile, ds.abspath(tmpfile)) |
| 201 | |
| 202 | def test_InvalidHTTP(self, tmp_path): |
| 203 | ds = datasource.DataSource(tmp_path) |
no test coverage detected