Commits

Kazuhiko Shimada authored d4555b28bde
CAS-13520: renamed TestGlobalMethods class and modified docstrings
No tags

casatasks/tests/tasks/test_imbaseline.py

Modified
841 841 with tool_manager(converted, image) as ia:
842 842 arr2 = ia.getchunk()
843 843 self.assertFalse(np.array_equal(arr1, arr2))
844 844
845 845 MS2ImageMethods.convert(base_image=self.original_image,
846 846 input_ms=None,
847 847 input_image_shape=self.image_shape,
848 848 datacolumn=DATACOLUMN)
849 849
850 850
851 -class TestGlobalMethods(test_base):
851 +class TestGlobalMethodsOfImbaseline(test_base):
852 852 """Test global methods.
853 853
854 + The white tests of global methods of imbaseline module must be implemented in this class.
855 +
854 856 9-1. get_image_shape: successful
855 857 9-2. get_image_shape: failure
856 858 9-3. get_image_shape: failure
857 859 """
858 860
859 861 datapath = ctsys_resolve('unittest/imbaseline/')
860 862 input_image = 'expected.im'
861 863 g192_im = 'g192_a2.image'
862 864
863 865 def setUp(self):
1175 1177 if path == parent_path:
1176 1178 raise RuntimeError('Some errors occured when creating work dir')
1177 1179 return Workdir(path)
1178 1180
1179 1181 raise RuntimeError('Some errors occured when creating work dir')
1180 1182
1181 1183
1182 1184 def suite():
1183 1185 """Unittest suite definition."""
1184 1186 return [TestImsmooth, TestAbstractFileStack, TestImageShape, TestImbaseline, TestImage2MS, TestSdbaseline,
1185 - TestSdsmooth, TestMS2Image, TestImageSubtraction, TestGlobalMethods]
1187 + TestSdsmooth, TestMS2Image, TestImageSubtraction, TestGlobalMethodsOfImbaseline]

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut