(self, tmp_path)
| 246 | |
| 247 | class TestRepositoryAbspath: |
| 248 | def test_ValidHTTP(self, tmp_path): |
| 249 | repos = datasource.Repository(valid_baseurl(), tmp_path) |
| 250 | _, netloc, upath, _, _, _ = urlparse(valid_httpurl()) |
| 251 | local_path = os.path.join(repos._destpath, netloc, |
| 252 | upath.strip(os.sep).strip('/')) |
| 253 | filepath = repos.abspath(valid_httpfile()) |
| 254 | assert_equal(local_path, filepath) |
| 255 | |
| 256 | def test_sandboxing(self, tmp_path): |
| 257 | repos = datasource.Repository(valid_baseurl(), tmp_path) |
no test coverage detected