astro.test.functional package

Submodules

astro.test.functional.Astrom_test module

Test Astrom functionality

class astro.test.functional.Astrom_test.Astrom_test(methodName='runTest')

Bases: unittest.case.TestCase

test_get_pixelarea()
test_set_from_header()
test_update_header()

astro.test.functional.BaseFrame_test module

Test BaseFrame functionality

class astro.test.functional.BaseFrame_test.test_read_header(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
tearDown()
test_read_astrom()
test_read_chip()
test_read_descriptor()
test_read_empty_header()
test_read_filter()
test_read_imstat()
test_read_instrument()

astro.test.functional.BiasFrame_test module

Test BiasFrame functionality

class astro.test.functional.BiasFrame_test.testCompareBias(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
tearDown()
test_compare_good()
test_stdev_difference()
class astro.test.functional.BiasFrame_test.testFlagDefinition(methodName='runTest')

Bases: unittest.case.TestCase

test_flag_defs()
class astro.test.functional.BiasFrame_test.testMakeFailure(methodName='runTest')

Bases: unittest.case.TestCase

test_bad_dependencies1()
test_bad_dependencies2()

astro.test.functional.BoundingBox_test module

Test BoundingBox functionality

class astro.test.functional.BoundingBox_test.testBoundingBox(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

KIDS_173.0_-1.5_g

test_all_sky()

All sky

test_no_overlap()

KIDS_48.0_-34.1_r

test_overlap_neighbour_tile()

KIDS_174.0_-1.5_g

test_overlap_same_tile()

KIDS_173.0_-1.5_i

test_overlap_with_self()

KIDS_173.0_-1.5_g

astro.test.functional.CanonicalName_test module

Test CanonicalName functionality

class astro.test.functional.CanonicalName_test.testCanonicalName(methodName='runTest')

Bases: unittest.case.TestCase

test_1()
test_extension()
test_project()

astro.test.functional.Chip_test module

Test Chip processing

Functionality tests moved to RawFrame_test as the attributes and methods have moved there also. Add new functional tests here or remove this test altogether.

class astro.test.functional.Chip_test.no_test

Bases: object

no_test()

astro.test.functional.ColdPixelMap_test module

Test ColdPixelMap functionality

class astro.test.functional.ColdPixelMap_test.testColdPixelMap(methodName='runTest')

Bases: unittest.case.TestCase

test_compare_bad()
test_compare_good()
test_verify_bad()
test_verify_good()

astro.test.functional.ConfigUpdaterFactory_test module

Test ConfigUpdaterFactory functionality

class astro.test.functional.ConfigUpdaterFactory_test.ConfigUpdaterFactory_test(methodName='runTest')

Bases: unittest.case.TestCase

test_acam()
test_decam()
test_megacam()
test_omegacam()
test_unknown()
test_vircam()
test_wfc()
test_wfi()

astro.test.functional.ConfigUpdater_test module

Test ConfigUpdater functionality

class astro.test.functional.ConfigUpdater_test.ConfigUpdater_test(methodName='runTest')

Bases: unittest.case.TestCase

test_megacam_rawbiasframe()
test_omegacam_astromparams_default()

Test that the default config is retained in the default case

test_omegacam_astromparams_multi()
test_omegacam_astromparams_specific_filter()

Test that the u’ specific detection threshold is set

test_omegacam_astromparams_user()

Test that user config works

test_omegacam_rawtwilightflatframe()
test_omegacam_readnoise()
test_vircam_saturatedpixelmap()
test_wfi_readnoise()

astro.test.functional.Config_test module

Test Config functionality

class astro.test.functional.Config_test.testConfig(methodName='runTest')

Bases: unittest.case.TestCase

testPreastrom()
testSextracor()
testSwarp()
class astro.test.functional.Config_test.testConfig2dict(methodName='runTest')

Bases: unittest.case.TestCase

testPreastrom()
testSextracor()
testSwarp()
class astro.test.functional.Config_test.testDict2Config(methodName='runTest')

Bases: unittest.case.TestCase

testPreastrom()
testSextracor()
testSwarp()

astro.test.functional.DarkCurrent_test module

Test DarkCurrent functionality

class astro.test.functional.DarkCurrent_test.testDarkCurrent(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

Set up simple dark current/particle event rate instances

test_compare_bad_dark_current()

Test comparison of ill-behaved dark_current

test_compare_good()

Test comparison of good data

test_verify_bad_dark_current()

Test verification of ill-behaved darkcurrent

test_verify_bad_event_counts()

Test verification of ill-behaved darkcurrent

test_verify_good()

Test verification of good data

astro.test.functional.DataObject_test module

Test DataObject functionality

class astro.test.functional.DataObject_test.testDataObject(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
tearDown()
test_exists()
test_name()
test_name_replaces_suffix()

astro.test.functional.DomeFlatFrame_test module

Test DomeFlatFrame processing

class astro.test.functional.DomeFlatFrame_test.testDomeflat(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

Testing making result image

test_build_header()

Testing build header

test_compare_error()

Testing comparison if no valid comparison frame is available

astro.test.functional.FilterSources_test module

Testing the FilterSources class.

class astro.test.functional.FilterSources_test.TestFilterSourcesMoveUpCS(methodName='runTest')

Bases: unittest.case.TestCase

Testing the FilterSources class.

setUp()
test_loaddata()
test_moveup()
class astro.test.functional.FilterSources_test.TestFilterSourcesMoveUpSS(methodName='runTest')

Bases: unittest.case.TestCase

Testing the FilterSources class.

setUp()
test_loaddata()
test_moveup()
class astro.test.functional.FilterSources_test.TestFilterSourcesRemoveSelf(methodName='runTest')

Bases: unittest.case.TestCase

Testing the FilterSources class.

setUp()
test_loaddata()
test_moveup()

astro.test.functional.HeaderTranslator_test module

Test HeaderTranslator functionality

class astro.test.functional.HeaderTranslator_test.checkHeaderTranslatorsChip

Bases: object

This test checks for every HeaderTranslator whether every chip in the chip list is present as a key in every one of the chip related dictionaries.

This test does not yet handle multiple chip configurations.

setup_instrument(instrumentname)
test_cd_map()
test_chip_size()
test_crpix_map()
test_number_of_chips()
test_orientation()
test_overscan()
astro.test.functional.HeaderTranslator_test.check_dictkeys_in_chiplist(keys, chiplist)
class astro.test.functional.HeaderTranslator_test.testACS(methodName='runTest')

Bases: astro.test.functional.HeaderTranslator_test.checkHeaderTranslatorsChip, unittest.case.TestCase

setUp()
class astro.test.functional.HeaderTranslator_test.testHeaderTranslator(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_translate_chip_keys()
test_translate_filter_keys()
class astro.test.functional.HeaderTranslator_test.testHeaderTranslatorThree(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
tearDown()
test_retrieve_value_from_header_four()
test_retrieve_value_from_header_one()

This test checks whether a “None” is returned if nothing could be found.

test_retrieve_value_from_header_three()
test_retrieve_value_from_header_two()

This test checks the most common situation where the frame has an AW header.

class astro.test.functional.HeaderTranslator_test.testHeaderTranslatorTwo(methodName='runTest')

Bases: unittest.case.TestCase

test_translate_filter_keys_one()
test_translate_filter_keys_three()
test_translate_filter_keys_two()
class astro.test.functional.HeaderTranslator_test.testMDM8K(methodName='runTest')

Bases: astro.test.functional.HeaderTranslator_test.checkHeaderTranslatorsChip, unittest.case.TestCase

setUp()
class astro.test.functional.HeaderTranslator_test.testSUP(methodName='runTest')

Bases: astro.test.functional.HeaderTranslator_test.checkHeaderTranslatorsChip, unittest.case.TestCase

setUp()
class astro.test.functional.HeaderTranslator_test.testWFC(methodName='runTest')

Bases: astro.test.functional.HeaderTranslator_test.checkHeaderTranslatorsChip, unittest.case.TestCase

setUp()
class astro.test.functional.HeaderTranslator_test.testWFI(methodName='runTest')

Bases: astro.test.functional.HeaderTranslator_test.checkHeaderTranslatorsChip, unittest.case.TestCase

setUp()

astro.test.functional.HotPixelMap_test module

Test HotPixelMap functionality

class astro.test.functional.HotPixelMap_test.testHotPixelMap(methodName='runTest')

Bases: unittest.case.TestCase

test_compare_bad()
test_compare_good()
test_verify_bad()
test_verify_good()

astro.test.functional.Imstat_test module

Test Imstat functionality

class astro.test.functional.Imstat_test.testImstatOne(methodName='runTest')

Bases: unittest.case.TestCase

hdict = {('STATDEV', 'stdev'): 10.0, ('STATMAX', 'max'): 1000.0, ('STATMEAN', 'mean'): 100.0, ('STATMED', 'median'): 101.0, ('STATMIN', 'min'): 10.0}
test_set_stats()
class astro.test.functional.Imstat_test.testImstatTwo(methodName='runTest')

Bases: unittest.case.TestCase

test_calculate()

astro.test.functional.Instrument_test module

Test Instrument functionality

class astro.test.functional.Instrument_test.testInstrument(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_convert_local_to_ut()
test_convert_ut_to_local()
class astro.test.functional.Instrument_test.test_select_or_make_instrument(methodName='runTest')

Bases: unittest.case.TestCase

test_OCAM_header()

astro.test.functional.OBGenerator_test module

class astro.test.functional.OBGenerator_test.test_group_rawfitsdata(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_group_bias()
test_group_dome()
test_group_science()
test_group_science_force_single_template()

astro.test.functional.PSFModel_test module

Unittests for PSFModel

class astro.test.functional.PSFModel_test.PSFModelTest(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test__get_mandatory_sextractor_params()
test__update_psfex_config()
test_make(mock_echo_results, mock_write_and_set_psf_image, mock_update_attributes, mock_run_psfex, mock_run_sextractor)

astro.test.functional.Pars_test module

Test Pars functionality

class astro.test.functional.Pars_test.testPars(methodName='runTest')

Bases: unittest.case.TestCase

test_ReducedScienceFrame()
test_instrument_specific_RawBiasFrame()
test_sequence_reduce_astrometry()

astro.test.functional.PhotSkyBrightness_test module

Test PhotSkyBrightness functionality

class astro.test.functional.PhotSkyBrightness_test.testPhotSkyBrightness(methodName='runTest')

Bases: unittest.case.TestCase

test_interpolate()

astro.test.functional.ProcessTarget_test module

Test ProcessTarget functionality

class astro.test.functional.ProcessTarget_test.ProcessTarget_QCFlags_test(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
tearDown()
test_get_qcflags()
test_is_ok()
test_set_flag()
class astro.test.functional.ProcessTarget_test.ProcessTarget_status_test(methodName='runTest')

Bases: unittest.case.TestCase

Test processing status operations

setUp()
tearDown()
test_compared_status()
test_inspected_status()
test_made_status()
test_verified_status()
test_virtual_methods()
class astro.test.functional.ProcessTarget_test.QCFlag_test(methodName='runTest')

Bases: unittest.case.TestCase

test_init_bad()
test_init_good()

astro.test.functional.RawFitsData_test module

Test RawFitsData functionality

class astro.test.functional.RawFitsData_test.testRawFitsData(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_group_by_date_1()
test_group_by_date_2()
test_group_by_date_3()
test_group_by_filter_1()
test_group_by_filter_2()
test_group_by_filter_3()

astro.test.functional.RawFrame_test module

Test RawFrame chip geometry functionality

class astro.test.functional.RawFrame_test.test1(methodName='runTest')

Bases: unittest.case.TestCase, astro.test.functional.RawFrame_test.test_accessor_function_invariants

setUp()
class astro.test.functional.RawFrame_test.test2(methodName='runTest')

Bases: unittest.case.TestCase, astro.test.functional.RawFrame_test.test_accessor_function_invariants

setUp()
class astro.test.functional.RawFrame_test.test_accessor_function_invariants

Bases: object

The accessor functions for chip regions can be tested against chip attributes which imply sizes for these regions

test_overscan_x_invariant()
test_overscan_y_invariant()
test_prescan_x_invariant()
test_prescan_y_invariant()
test_trim_invariants()
class astro.test.functional.RawFrame_test.test_read_header(methodName='runTest')

Bases: unittest.case.TestCase

test_read_chip_geometries()

astro.test.functional.ReadNoise_test module

Test ReadNoise functionality

class astro.test.functional.ReadNoise_test.testReadNoise(methodName='runTest')

Bases: unittest.case.TestCase

test_compare_bad()

Verification bad testing

test_compare_good()

Verification bad testing

test_verify_bad()

Verification bad testing

test_verify_bad_bias_difference()

Verification bad testing

test_verify_bad_readnoise()

Verification bad testing

test_verify_good()

Verification good testing

astro.test.functional.SetRelationsSet_test module

Test the SetRelationsSet

astro.test.functional.Sextractor_test module

# This is now a test on the Config module. Test functionality of astro/util/Sextractor.py

class astro.test.functional.Sextractor_test.testConfig(methodName='runTest')

Bases: unittest.case.TestCase

Test sex.conf manipulation

test_writing()

Sextractor.write_config()

class astro.test.functional.Sextractor_test.testDependencies(methodName='runTest')

Bases: unittest.case.TestCase

Test sextractor dependencies

test_path_dependencies()

Assert that path dependencies exist

class astro.test.functional.Sextractor_test.testException(methodName='runTest')

Bases: unittest.case.TestCase

test_no_image()

Fail when image does not exist

class astro.test.functional.Sextractor_test.testFilter(methodName='runTest')

Bases: unittest.case.TestCase

test_writing()

Sextractor.make_filter()

class astro.test.functional.Sextractor_test.testParam(methodName='runTest')

Bases: unittest.case.TestCase

test_writing()

Sextractor.write_param()

astro.test.functional.SourceCollectionOnTheFly_test module

Functionality tests to test OnTheFly and SourceCollections working together.

class astro.test.functional.SourceCollectionOnTheFly_test.testSourceCollection(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

Create the following dependency graph:

SL1 SL2
/ |
EXT AL SLW
| |

FS | AC | |

RA RS
|
SA SS
/|
CA |
|
CS # ! CS is not allowed like this because the
# sources of the dependencies are not unique.

Pass

TODO: Add a process_param to the AC that is also an SC.

tearDown()
test_getotfdependencies()

astro.test.functional.SourceList_test module

Test SourceList functionality

class astro.test.functional.SourceList_test.test_SourceList_Utilities(methodName='runTest')

Bases: unittest.case.TestCase

test_Area_To_HTM_Ranges()
test_add_ranges()
test_correct_bounding_box()
test_do_convert()
test_in_range()
test_intersect_ranges()
test_isrange()
test_make_in_list()
test_make_range()
test_outersect_ranges()
test_sort_range()
test_translate_dict_to_list()

This function does not seem to be used anywhere, nor is its use clear to me.

astro.test.functional.TableConverter_test module

Tests for the TableConverter class.

class astro.test.functional.TableConverter_test.testTableConverter(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
tearDown()
test_attributenullerrors()

Test to determine whether bad nulls are detected.

test_catalog()
test_copy_row_identifiers()
test_formats()
test_indexing()
test_masking()
test_masking_bitand()
test_sourcelist()
test_strings()

astro.test.functional.TwilightFlatFrame_test module

Test TwilightFlatFrame processing

class astro.test.functional.TwilightFlatFrame_test.testTwilightflat(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

Testing making result image

test_build_header()

Testing build header

test_check_preconditions()
test_constructor()
test_copy_attributes()
test_derive_timestamp()

astro.test.functional.darma_test module

Test suite for DARMA functionality

astro.test.functional.htm_test module

Tests for the HTM module.

class astro.test.functional.htm_test.test_htm(methodName='runTest')

Bases: unittest.case.TestCase

helper_test_radec(ra, dec, level=9)
test_htm_1()

astro.test.functional.htmsafe_test module

Tests for the HTM module.

class astro.test.functional.htmsafe_test.test_htm(methodName='runTest')

Bases: unittest.case.TestCase

helper_test_radec(ra, dec, level=9)
test_htm_1()
test_htm_2()
test_htm_3()
test_htm_4()

astro.test.functional.import_everything_test module

Try to import every module that can be found

astro.test.functional.import_everything_test.import_everything(path, prefix)

Imports all modules in path except those which are blacklisted.

class astro.test.functional.import_everything_test.test_import_everything(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
tearDown()
test_astro()
test_common()
test_install_astro()
test_install_common()

Module contents