def METHOD_NAME():
    ''' Test that initialising WhileLoop with invalid annotations produces the
    expected error.'''
    with pytest.raises(InternalError) as err:
        _ = WhileLoop(annotations=["invalid"])
    assert ("WhileLoop with unrecognised annotation 'invalid', valid "
            "annotations are:") in str(err.value)