(self)
| 267 | assert_equal(local_path, filepath) |
| 268 | |
| 269 | def test_sandboxing(self): |
| 270 | tmp_path = lambda x: os.path.abspath(self.repos.abspath(x)) |
| 271 | assert_(tmp_path(valid_httpfile()).startswith(self.tmpdir)) |
| 272 | for fn in malicious_files: |
| 273 | assert_(tmp_path(http_path+fn).startswith(self.tmpdir)) |
| 274 | assert_(tmp_path(fn).startswith(self.tmpdir)) |
| 275 | |
| 276 | def test_windows_os_sep(self): |
| 277 | orig_os_sep = os.sep |
no test coverage detected