satpy.tests.test_dependency_tree module

Unit tests for the dependency tree class and dependencies.

class satpy.tests.test_dependency_tree.TestDependencyTree(methodName='runTest')[source]

Bases: TestCase

Test the dependency tree.

This is what we are working with:

None (No Data)
 +DataID(name='comp19')
 + +DataID(name='ds5', resolution=250, modifiers=('res_change',))
 + + +DataID(name='ds5', resolution=250, modifiers=())
 + + +__EMPTY_LEAF_SENTINEL__ (No Data)
 + +DataID(name='comp13')
 + + +DataID(name='ds5', resolution=250, modifiers=('res_change',))
 + + + +DataID(name='ds5', resolution=250, modifiers=())
 + + + +__EMPTY_LEAF_SENTINEL__ (No Data)
 + +DataID(name='ds2', resolution=250, calibration=<calibration.reflectance>, modifiers=())

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

_classSetupFailed = False
_class_cleanups = []
static _nodes_equal(node_list1, node_list2)[source]
setUp()[source]

Set up the test tree.

test_copy_preserves_all_nodes()[source]

Test that dependency tree copy preserves all nodes.

test_copy_preserves_unique_empty_node()[source]

Test that dependency tree copy preserves the uniqueness of the empty node.

test_new_dependency_tree_preserves_unique_empty_node()[source]

Test that dependency tree instantiation preserves the uniqueness of the empty node.

class satpy.tests.test_dependency_tree.TestMissingDependencies(methodName='runTest')[source]

Bases: TestCase

Test the MissingDependencies exception.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

_classSetupFailed = False
_class_cleanups = []
test_new_missing_dependencies()[source]

Test new MissingDependencies.

test_new_missing_dependencies_with_message()[source]

Test new MissingDependencies with a message.

class satpy.tests.test_dependency_tree.TestMultipleResolutionSameChannelDependency(methodName='runTest')[source]

Bases: TestCase

Test that MODIS situations where the same channel is available at multiple resolution works.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

_classSetupFailed = False
_class_cleanups = []
test_modis_overview_1000m()[source]

Test a modis overview dependency calculation with resolution fixed to 1000m.

class satpy.tests.test_dependency_tree.TestMultipleSensors(methodName='runTest')[source]

Bases: TestCase

Test cases where multiple sensors are available.

This is what we are working with:

None (No Data)
 +DataID(name='comp19')
 + +DataID(name='ds5', resolution=250, modifiers=('res_change',))
 + + +DataID(name='ds5', resolution=250, modifiers=())
 + + +__EMPTY_LEAF_SENTINEL__ (No Data)
 + +DataID(name='comp13')
 + + +DataID(name='ds5', resolution=250, modifiers=('res_change',))
 + + + +DataID(name='ds5', resolution=250, modifiers=())
 + + + +__EMPTY_LEAF_SENTINEL__ (No Data)
 + +DataID(name='ds2', resolution=250, calibration=<calibration.reflectance>, modifiers=())

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

_classSetupFailed = False
_class_cleanups = []
setUp()[source]

Set up the test tree.

test_compositor_loaded_sensor_order()[source]

Test that a compositor is loaded from the first alphabetical sensor.

test_modifier_loaded_sensor_order()[source]

Test that a modifier is loaded from the first alphabetical sensor.