(self)
| 25 | open(fullname, "wb").close() |
| 26 | |
| 27 | def test_version(self): |
| 28 | # Test version() |
| 29 | with tempfile.TemporaryDirectory() as tmpdir: |
| 30 | self.touch(tmpdir, "pip-1.2.3b1-py2.py3-none-any.whl") |
| 31 | with unittest.mock.patch.object(ensurepip, '_WHEEL_PKG_DIR', Path(tmpdir)): |
| 32 | self.assertEqual(ensurepip.version(), '1.2.3b1') |
| 33 | |
| 34 | def test_version_no_dir(self): |
| 35 | # Test version() without a wheel package directory |
nothing calls this directly
no test coverage detected