surface_poly_fit.tests.MongeJetFitterTest¶
- class surface_poly_fit.tests.MongeJetFitterTest(methodName='runTest')[source]¶
Bases:
SurfacePolyFitTest
Tests for
surface_poly_fit.core.MongeJetFitter
.Methods
__init__
([methodName])Create an instance of the class that will use the named test method when executed.
addClassCleanup
(function, /, *args, **kwargs)Same as addCleanup, except the cleanup items are called even if setUpClass fails (unlike tearDownClass).
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.
debug
()Run the test without collecting errors in a TestResult
Execute all class cleanup functions.
Execute all cleanup functions.
export_mesh
(file_name, poly_surface)Export a
surface_poly_fit.core.PolyhedralSurface
to file.id
()run
([result])setUp
()Set-up, initialise logger.
Hook method for setting up class fixture before running tests in the class.
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.
Hook method for deconstructing the class fixture after running all tests in the class.
Test
surface_poly_fit.core.MongeJetFitter
instance creation.test_fit
()Checks on the bounding-area (
"poly_fit_bounding_area"
field) results returned bysurface_poly_fit.core.MongeJetFitter.fit_all()
.Test
surface_poly_fit.core.MongeJetFitter.fit_at_vertex()
for polynomial which is not aligned to coordinate axes.Test property get and set.
Attributes