@staticmethod
def ConvertToFixtureName(func_name):
    """
        Converts a function name to a fixture name:
            - lower-case
            - underscores separates words
            - ends with an underscore

        The fixture name is used as a parameter of a Command function.

        Ex.
            MyDb -> my_db_

        :param unicode func_name:
            The function name, using camel cases standard.

        :return unicode:
        """
    import re
    s1 = re.sub('(.)([A-Z][a-z]+)', '\\1_\\2', func_name)
    result = re.sub('([a-z0-9])([A-Z])', '\\1_\\2', s1).lower()
    if not result.endswith('_'):
        result += '_'
    return result
