def METHOD_NAME(create_fake_fits, name, expconf):
    """ test correct file format and config is returned """
    filename = create_fake_fits(name)
    # for generic files that have no registered specutils format, valid_format will be blank
    name = name if 'generic' not in name else []
    valid_format, config = get_valid_format(filename)
    assert (valid_format, config) == (name, expconf)