Source code for image.testcases

import unittest
from image import Image


[docs]class ImageTests(unittest.TestCase):
[docs] def setUp(self): self.testImage = Image('testimage/HICA_withivar.fits')
[docs] def test_is2048x2048(self): self.assertEqual(self.testImage.data.shape, (2048, 2048), 'Array in last test file HDU is not 2048x2048.')
[docs] def tearDown(self): del self.testImage