def METHOD_NAME(fortran_reader):
    '''
    Check that generate_lfric_adjoint raises the expected error when
    provided PSyIR that does not have a Container.
    '''
    psyir = fortran_reader.psyir_from_source("""\