surface_poly_fit.tests.SurfacePolyFitImportTest¶
- class surface_poly_fit.tests.SurfacePolyFitImportTest(methodName='runTest')[source]¶
Bases:
SurfacePolyFitTest
Basic import tests, make sure the pybind11 extension can be imported.
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 import of
surface_poly_fit
package.Test import of pybind11 extension.
Test pybind11 class export (can construct an instance).
Attributes