def _file_name_builder(test_name):
    """Build a name for the output file."""
    try:
        file_name = (test_name + ".dat").replace(' ', '_')
    except TypeError:
        file_name = ("NoName" + ".dat")
    return file_name