tests.test_fake_image module

Class Inheritance Diagram

Inheritance diagram of FloatTestCase, Image, PiecewiseBicubicPSF, TestImage

Unittest test case for the astrowisp.fake_image.image.Image class.

class tests.test_fake_image.TestImage(methodName='runTest')[source]

Bases: FloatTestCase

Inheritance diagram of tests.test_fake_image.TestImage

Make sure the Image class functions as expected.

assertExpectedImage(got, expected, message)[source]

Check if an image is the same as expected.

setUp()[source]

Set tolerance to 100 x epsilon.

test_misaligned_source()[source]

Test behavior with a single source not alinged with pixels.

test_no_source()[source]

Test behavior of images with no sources.

test_pix_aligned_source()[source]

Test behavior with a single source covering exact pixels.