def METHOD_NAME(self):
    """test formatted error message"""
    try:
        r = mapscript.rectObj(1.0, -2.0, -3.0, 4.0)
        print(r)
    except mapscript.MapServerError as msg:
        assert str(msg) == "rectObj(): Invalid rectangle. { 'minx': 1.000000 , " \
                           "'miny': -2.000000 , 'maxx': -3.000000 , 'maxy': 4.000000 }", msg