def METHOD_NAME(mocker, walTheme):
    io = mocker.patch("core.theme.io")
    os = mocker.patch("core.theme.os")
    os.path.isfile.return_value = True
    io.open.return_value = mocker.MagicMock()
    io.open.return_value.__enter__.return_value.read.return_value = """
        { "colors": { "red": "#ff0000" } }
    """
    theme = core.theme.Theme(raw_data=walTheme)
    assert theme.keywords() == {"red": "#ff0000"}