Source
xxxxxxxxxx
+"\nError: Bad region file, 'garbage.rgn', was not reported as missing."+"\nREsults: "+str(results)
#######################################################################3
# immath_test.py
#
#
# Copyright (C) 2008, 2009
# Associated Universities, Inc. Washington DC, USA.
#
# This scripts free software; you can redistribute it and/or modify it
# under the terms of the GNU Library General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
# License for more details.
#
# You should have received a copy of the GNU Library General Public License
# along with this library; if not, write to the Free Software Foundation,
# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
#
# Correspondence concerning AIPS++ should be adressed as follows:
# Internet email: aips2-request@nrao.edu.
# Postal address: AIPS++ Project Office
# National Radio Astronomy Observatory
# 520 Edgemont Road
# Charlottesville, VA 22903-2475 USA
#
# <author>
# Shannon Jaeger (University of Calgary)
# dmehring
# </author>
#
# <summary>
# Test suite for the CASA immath Task
# </summary>
#
# <reviewed reviwer="" date="" tests="" demos="">
# </reviewed
#
# <prerequisite>
# <ul>
# <li> <linkto class="immath.py:description">immath</linkto>
# </ul>
# </prerequisite>
#
# <etymology>
# immath_test stands for image math test
# </etymology>
#
# <synopsis>
# immath_test.py is a Python script that tests the correctness
# of the immath task in CASA.
#
# The tests include:
# ????
#
# In the immath task ????
#
# </synopsis>
#
# <example>
# # This test was designed to run in the automated CASA test system.
# # This example shows who to run it manually from with casapy.
# runUnitTest.main(['test_immath'])
#
# or outside casapy like this:
# casapy -c runUnitTest.py test_immath
#
# </example>
#
# <motivation>
# To provide a test standard to the immath task to try and ensure
# coding changes do not break the
# </motivation>
#
# <todo>
# mode input/output parameter test
# varnames input/output parameter test
# polariziation/spectral mode tests.
# </todo>
########################################################################3
import sys
import traceback
import os
import shutil
import random
import time
import casac
import numpy