pyranha.test
¶Test module.
pyranha.test.
basic_test_case
(methodName='runTest')[source]¶Basic test case.
To be used within the unittest
framework. Will test features common
to all series types.
>>> import unittest as ut
>>> suite = ut.TestLoader().loadTestsFromTestCase(basic_test_case)
pyranha.test.
converters_test_case
(methodName='runTest')[source]¶Test case for the automatic conversion to/from Python from/to C++.
To be used within the unittest
framework.
>>> import unittest as ut
>>> suite = ut.TestLoader().loadTestsFromTestCase(converters_test_case)
pyranha.test.
custom_derivatives_test_case
(methodName='runTest')[source]¶Test case for custom derivatives in series.
To be used within the unittest
framework. Will check that the custom
derivatives machinery works properly.
>>> import unittest as ut
>>> suite = ut.TestLoader().loadTestsFromTestCase(custom_derivatives_test_case)
pyranha.test.
degree_test_case
(methodName='runTest')[source]¶Test case for the degree/ldegree functionality.
To be used within the unittest
framework.
>>> import unittest as ut
>>> suite = ut.TestLoader().loadTestsFromTestCase(degree_test_case)
pyranha.test.
divisor_series_test_case
(methodName='runTest')[source]¶divisor_series
module test case.
To be used within the unittest
framework. Will test the functions implemented in the
divisor_series
module.
>>> import unittest as ut
>>> suite = ut.TestLoader().loadTestsFromTestCase(divisor_series_test_case)
pyranha.test.
doctests_test_case
(methodName='runTest')[source]¶Test case that will run all the doctests.
To be used within the unittest
framework.
>>> import unittest as ut
>>> suite = ut.TestLoader().loadTestsFromTestCase(doctests_test_case)
pyranha.test.
integrate_test_case
(methodName='runTest')[source]¶Test case for the integration functionality.
To be used within the unittest
framework.
>>> import unittest as ut
>>> suite = ut.TestLoader().loadTestsFromTestCase(integrate_test_case)
pyranha.test.
math_test_case
(methodName='runTest')[source]¶math
module test case.
To be used within the unittest
framework. Will test the functions implemented in the
math
module.
>>> import unittest as ut
>>> suite = ut.TestLoader().loadTestsFromTestCase(math_test_case)
pyranha.test.
mpmath_test_case
(methodName='runTest')[source]¶mpmath
test case.
To be used within the unittest
framework. Will test interoperability between
the mpmath
library and the C++ real class. If the mpmath
library is not available, the
test will return immediately.
>>> import unittest as ut
>>> suite = ut.TestLoader().loadTestsFromTestCase(mpmath_test_case)
pyranha.test.
poisson_series_test_case
(methodName='runTest')[source]¶poisson_series
module test case.
To be used within the unittest
framework. Will test the functions implemented in the
poisson_series
module.
>>> import unittest as ut
>>> suite = ut.TestLoader().loadTestsFromTestCase(poisson_series_test_case)
pyranha.test.
polynomial_test_case
(methodName='runTest')[source]¶polynomial
module test case.
To be used within the unittest
framework. Will test the functions implemented in the
polynomial
module.
>>> import unittest as ut
>>> suite = ut.TestLoader().loadTestsFromTestCase(polynomial_test_case)
pyranha.test.
run_test_suite
()[source]¶Run the full test suite.
This function will raise an exception if at least one test fails.
pyranha.test.
serialization_test_case
(methodName='runTest')[source]¶Test case for the serialization of series.
To be used within the unittest
framework.
>>> import unittest as ut
>>> suite = ut.TestLoader().loadTestsFromTestCase(serialization_test_case)
pyranha.test.
series_division_test_case
(methodName='runTest')[source]¶Series division test case.
To be used within the unittest
framework. Will test series division.
>>> import unittest as ut
>>> suite = ut.TestLoader().loadTestsFromTestCase(series_division_test_case)
pyranha.test.
series_in_place_ops_test_case
(methodName='runTest')[source]¶Series in-place operations test case.
To be used within the unittest
framework. Will test in-place series arithmetics.
>>> import unittest as ut
>>> suite = ut.TestLoader().loadTestsFromTestCase(series_in_place_ops_test_case)
pyranha.test.
t_degree_order_test_case
(methodName='runTest')[source]¶Test case for the t_degree/t_ldegree/t_order/t_lorder functionality.
To be used within the unittest
framework.
>>> import unittest as ut
>>> suite = ut.TestLoader().loadTestsFromTestCase(t_degree_order_test_case)
pyranha.test.
t_integrate_test_case
(methodName='runTest')[source]¶Test case for the time integration functionality.
To be used within the unittest
framework.
>>> import unittest as ut
>>> suite = ut.TestLoader().loadTestsFromTestCase(t_integrate_test_case)