from unittest.mock import Mock


def theme_mock(name='example-theme'):
    """Get a mock representing a theme object.

    :param name: a name of a theme represented by the mock
    :returns: the mock.
    """
    theme = Mock()
    theme.name = name
    return theme