mpi_array.indexing_test.HaloIndexingExtentTest¶
-
class
mpi_array.indexing_test.
HaloIndexingExtentTest
(methodName='runTest')[source]¶ Bases:
mpi_array.unittest.TestCase
unittest.TestCase
formpi_array.indexing.HaloIndexingExtentTest
.Methods
__init__
([methodName])Create an instance of the class that will use the named test method when executed. addCleanup
(function, *args, **kwargs)Add a function, with arguments, to be called when the test is completed. addTypeEqualityFunc
(typeobj, function)Add a type specific assertEqual style function to compare a type. assertArraySplitEqual
(splt1, splt2)Compares list
ofnumpy.ndarray
results returned bynumpy.mpi_array()
andmpi_array.split.mpi_array()
functions.countTestCases
()debug
()Run the test without collecting errors in a TestResult defaultTestResult
()doCleanups
()Execute all cleanup functions. id
()run
([result])setUp
()Hook method for setting up the test fixture before exercising it. setUpClass
()Hook method for setting up class fixture before running tests in the class. shortDescription
()Returns a one-line description of the test, or None if no description has been provided. skipTest
(reason)Skip this test. subTest
([msg])Return a context manager that will return the enclosed block of code in a subtest identified by the optional message and keyword parameters. tearDown
()Hook method for deconstructing the test fixture after testing it. tearDownClass
()Hook method for deconstructing the class fixture after running all tests in the class. test_attributes
()unittest.TestCase
formpi_array.indexing.HaloIndexingExtentTest
test_calc_intersection_split
()Tests for mpi_array.indexing.calc_intersection_split
.test_globale_and_locale_extent_conversion
()Test for mpi_array.indexing.HaloIndexingExtent.globale_to_locale_h()
, andmpi_array.indexing.HaloIndexingExtent.locale_to_globale_h()
.test_globale_and_locale_index_conversion
()Test for mpi_array.indexing.HaloIndexingExtent.globale_to_locale_h()
, andmpi_array.indexing.HaloIndexingExtent.locale_to_globale_h()
.test_globale_and_locale_slice_conversion
()Test for mpi_array.indexing.HaloIndexingExtent.globale_to_locale_slice_h()
, andmpi_array.indexing.HaloIndexingExtent.locale_to_globale_slice_h()
.test_repr
()Test for repr(HaloIndexingExtent(start=(1,2,3), stop=(8,9,10)))
.test_start_stop_shape
()unittest.TestCase
formpi_array.indexing.HaloIndexingExtent
test_to_slice
()unittest.TestCase
formpi_array.indexing.HaloIndexingExtent
test_to_tuple
()Test for HaloIndexingExtent.to_tuple()
.Attributes
longMessage
maxDiff