astropy/photutils — pull request #3 by astrofrog (2012-05-27 14:11:27+00:00)
Title: Improve layout and coverage of tests

I've improved the layout of the tests by separating things that test the wrapper functions (e.g. the automated broadcasting), and things that test the accuracy of the photometry. All aperture types are now tested equally.

The advantage of testing the accuracy of the photometry via ``aperture_photometry`` is that the tests can easily be parameterized across aperture types - see e.g. the tests of the aperture outside the array.

We need a lot more tests of the accuracy in future, and we can't just test to 1% accuracy, so at some stage we have to include exact tests for the subpixel photometry (i.e. once we know the aperture photometry is working correctly, we tabulate the values we should get with different subpixel settings and compare to that).

Anyway, this is just a first cut at improving the testing coverage, so we can merge this in relatively quickly if you are happy with it.