mpi_array.globale_ufunc_test.BroadcastShapeTest

class mpi_array.globale_ufunc_test.BroadcastShapeTest(methodName='runTest')[source]

Bases: mpi_array.unittest.TestCase

unittest.TestCase for mpi_array.globale_ufunc.broadcast_shape().

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 of numpy.ndarray results returned by numpy.mpi_array() and mpi_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_broadcastable() Asserts for variety of broadcastable shapes.
test_non_broadcastable() Test that mpi_array.globale_ufunc.broadcast_shape() raises a ValueError if shapes are not broadcastable.

Attributes

longMessage
maxDiff