@staticmethod
def convert_list_to_test_format(origin: str, data: list) ->str:
    """
        Convert a list in a format ready for tests.

        :param origin: The parent key of the list
        :param data: The list to convert
        :return: The resulting string
        """
    result = []
    for item in data:
        if isinstance(item, str):
            result.append("'%s'" % item)
        elif isinstance(item, bool):
            result.append('`%s`' % 'true' if item else 'false')
        elif isinstance(item, (int, float)):
            result.append('`%s`' % item)
    return '%s[]==[%s]' % (origin, ', '.join(result))
