def METHOD_NAME(self, nc_file):
    with pytest.raises(TypeError):
        NCFile.df_to_text_file(None, str(nc_file), time_in_row=False)
    csv_path = nc_file.parent / (nc_file.name + '.csv')
    with pytest.raises(ValueError):
        NCFile.df_to_text_file(None, csv_path, time_in_row="False")