(self)
| 305 | assert_(self.repos.exists(valid_httpurl())) |
| 306 | |
| 307 | def test_CachedHTTPFile(self): |
| 308 | localfile = valid_httpurl() |
| 309 | # Create a locally cached temp file with an URL based |
| 310 | # directory structure. This is similar to what Repository.open |
| 311 | # would do. |
| 312 | scheme, netloc, upath, pms, qry, frg = urlparse(localfile) |
| 313 | local_path = os.path.join(self.repos._destpath, netloc) |
| 314 | os.mkdir(local_path, 0o0700) |
| 315 | tmpfile = valid_textfile(local_path) |
| 316 | assert_(self.repos.exists(tmpfile)) |
| 317 | |
| 318 | |
| 319 | class TestOpenFunc: |
nothing calls this directly
no test coverage detected