Lines Matching refs:unittest
1 import unittest
2 import unittest.mock
13 class TestEnsurePipVersion(unittest.TestCase):
21 run_pip_patch = unittest.mock.patch("ensurepip._run_pip")
28 os_patch = unittest.mock.patch("ensurepip.os")
36 class TestBootstrap(EnsurepipMixin, unittest.TestCase):
44 unittest.mock.ANY, "setuptools", "pip",
46 unittest.mock.ANY,
58 unittest.mock.ANY, "--root", "/foo/bar/",
61 unittest.mock.ANY,
70 unittest.mock.ANY, "--user", "setuptools", "pip",
72 unittest.mock.ANY,
81 unittest.mock.ANY, "--upgrade", "setuptools", "pip",
83 unittest.mock.ANY,
92 unittest.mock.ANY, "-v", "setuptools", "pip",
94 unittest.mock.ANY,
103 unittest.mock.ANY, "-vv", "setuptools", "pip",
105 unittest.mock.ANY,
114 unittest.mock.ANY, "-vvv", "setuptools", "pip",
116 unittest.mock.ANY,
168 class TestUninstall(EnsurepipMixin, unittest.TestCase):
248 class TestBootstrappingMainFunction(EnsurepipMixin, unittest.TestCase):
264 unittest.mock.ANY, "setuptools", "pip",
266 unittest.mock.ANY,
279 class TestUninstallationMainFunction(EnsurepipMixin, unittest.TestCase):
310 unittest.main()