@mock.patch("sys.platform", "win32")
    @mock.patch("bento.core.platforms.sysconfig.bento.utils.path.find_root", lambda ignored: "C:\\")
    @mock.patch("sys.prefix", r"C:\Python%s" % PY_VERSION_SHORT_NO_DOT)
    @mock.patch("sys.exec_prefix", PY_VERSION_SHORT_NO_DOT % r"C:\Python%s")
    def test_scheme_default(self):
        bento_info = """\
Name: foo
"""
        self.options.prefix = self.eprefix = None

        scheme = self._compute_scheme(bento_info, self.options)
        prefix = scheme.pop("prefix")
        eprefix = scheme.pop("eprefix")
        py_version_short = scheme.pop("py_version_short")
        pkgname = scheme.pop("pkgname")

        self.assertEqual(prefix, sys.prefix)
        self.assertEqual(eprefix, sys.exec_prefix)
        self.assertEqual(pkgname, "foo")
        self.assertEqual(py_version_short, PY_VERSION_SHORT)

        # Check that other values in scheme have not been modified
        for k, v in scheme.items():
            self.assertEqual(WIN32_REFERENCE[k], v, "discrepency for path %s: %s vs %s" % (k, WIN32_REFERENCE[k], v))
dataset/ETHPy150Open cournape/Bento/bento/commands/tests/test_configure.py/TestWin32Scheme.test_scheme_default/swapped operands of `%`