def METHOD_NAME():
    """
    Test if returns False when install packages fails (bower error)
    """
    mock_list = MagicMock(return_value={})
    mock_install = MagicMock(return_value=False)
    with patch.dict(
        bower.__salt__, {"bower.list": mock_list, "bower.install": mock_install}
    ):
        ret = bower.installed("underscore", "/path/to/project")
        expected = {
            "name": "underscore",
            "result": False,
            "comment": "Could not install package(s) 'underscore'",
            "changes": {},
        }
        assert ret == expected