def METHOD_NAME(self) -> None:
    def mock_install_chrome(unused_version: str) -> None:
        return
    def mock_get_chrome_version() -> str:
        return '123.0.12.45'
    install_chrome_swap = self.swap_with_checks(
        install_chrome_for_ci, 'install_chrome',
        mock_install_chrome,
        expected_args=[
            (DOWNLOAD_VERSION,),
        ])
    get_version_swap = self.swap_with_checks(
        install_chrome_for_ci, 'get_chrome_version',
        mock_get_chrome_version,
        expected_args=[tuple()])
    with install_chrome_swap, get_version_swap:
        with self.assertRaisesRegex(
            RuntimeError, (
                'Chrome version {} should have been installed. '
                'Version 123.0.12.45 was found instead.'
            ).format(DOWNLOAD_VERSION)
        ):
            install_chrome_for_ci.main()