def print_test_comparison(test_name, expected, result):
    """
    Utility function to nicely format the a test comparison as a string.
    
    Parameters
    ----------
    test_name : `str`
        Name of the test.
    expected : :py:class:`~pandas.DataFrame`
        Expected test result that can be represented as text
    result : :py:class:`~pandas.DataFrame`
        Expected test result that can be represented as text

    Returns
    -------
    `str`
        String object represeting a test.
    """
    line = "\n"
    line += "-" * 60 + "\n"
    line += "{}\n".format(test_name)
    line += "-" * 60 + "\n"
    line += "-" * 26 + "EXPECTED" + "-" * 26 + "\n"
    line += "{}\n".format(expected)
    line += "-" * 28 + "END" + "-" * 29 + "\n"
    line += "-" * 27 + "RESULT" + "-" * 27 + "\n"
    line += "{}\n".format(result)
    line += "-" * 28 + "END" + "-" * 29 + "\n"
    line += "\n"
    return line