tests (ndcube.tests)#

This module contains package tests and helpers.

ndcube.tests.helpers Module#

Helpers for testing ndcube.



A decorator for a test that verifies the hash of the current figure or the returned figure, with the name of the test function as the hash identifier in the library.


Generate the hash library name for this env.

assert_extra_coords_equal(test_input, ...)

assert_metas_equal(test_input, expected_output)

assert_cubes_equal(test_input, expected_cube)

assert_cubesequences_equal(test_input, ...)

assert_wcs_are_equal(wcs1, wcs2)

Assert function for testing two wcs object.