def METHOD_NAME():
    """
    Test if it returns True when install succeeds
    """
    mock_list = MagicMock(return_value={})
    mock_install = MagicMock(return_value=True)
    with patch.dict(
        bower.__salt__, {"bower.list": mock_list, "bower.install": mock_install}
    ):
        ret = bower.installed("underscore", "/path/to/project")
        expected = {
            "name": "underscore",
            "result": True,
            "comment": "Package(s) 'underscore' successfully installed",
            "changes": {"new": ["underscore"], "old": []},
        }
        assert ret == expected