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

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

        self.assertEqual(prefix, r"C:\foo")
        self.assertEqual(eprefix, r"C:\foo")

        # 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_prefix/original