def generate_test_description(local_symbols, *variable_names):
    """
    Generate test description.

    :param local_symbols: local symbol table from where the function was called
    :param variable_names: variable names
    :return: test description
    """
    variables_text = ', '.join('{} = {}'.format(variable_name, eval(variable_name, local_symbols))
                               for variable_name in variable_names)

    return 'when testing \'{}\''.format(variables_text)