tests.test_operations ===================== .. py:module:: tests.test_operations Attributes ---------- .. autoapisummary:: tests.test_operations.p100 tests.test_operations.p010 tests.test_operations.p110 tests.test_operations.p111 tests.test_operations.x tests.test_operations.y tests.test_operations.z tests.test_operations.sg40_a_tf tests.test_operations.sg40_a_tl tests.test_operations.sg40_a_m tests.test_operations.sg40_a_code tests.test_operations.sg40_21_code tests.test_operations.sg40_n_code tests.test_operations.sg147_m3_code Classes ------- .. autoapisummary:: tests.test_operations.TestOperationsInit tests.test_operations.TestSelectedOperations tests.test_operations.TestOperations tests.test_operations.TestBoundedOperations tests.test_operations.TestPointOperations tests.test_operations.TestCatalogOperations Module Contents --------------- .. py:data:: p100 .. py:data:: p010 .. py:data:: p110 .. py:data:: p111 .. py:data:: x .. py:data:: y .. py:data:: z .. py:data:: sg40_a_tf .. py:data:: sg40_a_tl .. py:data:: sg40_a_m .. py:data:: sg40_a_code :value: 'x+1/2,-y,z' .. py:data:: sg40_21_code :value: '-x,-y+1/2,z+1/2' .. py:data:: sg40_n_code :value: '-x+1/2,y-1/2,z+1/2' .. py:data:: sg147_m3_code :value: 'x-y,x,-z' .. py:class:: TestOperationsInit(methodName='runTest') Bases: :py:obj:`unittest.TestCase` A class whose instances are single test cases. By default, the test code itself should be placed in a method named 'runTest'. If the fixture may be used for many test cases, create as many test methods as are needed. When instantiating such a TestCase subclass, specify in the constructor arguments the name of the test method that the instance is to execute. Test authors should subclass TestCase for their own tests. Construction and deconstruction of the test's environment ('fixture') can be implemented by overriding the 'setUp' and 'tearDown' methods respectively. If it is necessary to override the __init__ method, the base class __init__ method must always be called. It is important that subclasses should not change the signature of their __init__ method, since instances of the classes are instantiated automatically by parts of the framework in order to be run. When subclassing TestCase, you can set these attributes: * failureException: determines which exception will be raised when the instance's assertion methods fail; test methods raising this exception will be deemed to have 'failed' rather than 'errored'. * longMessage: determines whether long messages (including repr of objects used in assert methods) will be printed on failure in *addition* to any explicit message passed. * maxDiff: sets the maximum length of a diff in failure messages by assert methods using difflib. It is looked up as an instance attribute so can be configured by individual tests if required. .. py:method:: test_from_pair() .. py:method:: test_from_code() .. py:method:: test_from_matrix() .. py:class:: TestSelectedOperations(methodName='runTest') Bases: :py:obj:`tests.NumpyTestCase` Define space group #40 'Ama2' operations here to avoid code repetition .. py:method:: setUpClass() :classmethod: Hook method for setting up class fixture before running tests in the class. .. py:class:: TestOperations(methodName='runTest') Bases: :py:obj:`TestSelectedOperations` Test selected aspects specific to `Operation`s .. py:method:: test_equals() .. py:method:: test_product() .. py:method:: test_power() .. py:method:: test_inverse() .. py:method:: test_repr() .. py:method:: test_str() .. py:method:: test_hash() .. py:method:: test_code() .. py:method:: test_det() .. py:method:: test_typ() .. py:method:: test_fold() .. py:method:: test_order() .. py:method:: test_glide() .. py:method:: test_trace() .. py:method:: test_orientation() .. py:method:: test_sense() .. py:method:: test_at() .. py:method:: test_into() .. py:method:: test_transform() .. py:method:: test_extincts() .. py:method:: test_distance_to_point() .. py:class:: TestBoundedOperations(methodName='runTest') Bases: :py:obj:`TestSelectedOperations` Test selected aspects specific to `BoundedOperation`s .. py:method:: test_binding() .. py:method:: test_unbinding() .. py:method:: test_is_bounded() .. py:class:: TestPointOperations(methodName='runTest') Bases: :py:obj:`TestSelectedOperations` Test selected aspects specific to `BoundedOperation`s .. py:method:: test_point_restraint() .. py:class:: TestCatalogOperations(methodName='runTest') Bases: :py:obj:`unittest.TestCase` Run complete rigorous tests on all operations defined in `SG` catalog .. py:method:: setUpClass() :classmethod: Hook method for setting up class fixture before running tests in the class. .. py:method:: test_catalog_names() .. py:method:: test_catalog_fold() .. py:method:: test_catalog_order() .. py:method:: test_catalog_at_origin() .. py:method:: test_catalog_into_orientation() .. py:method:: test_catalog_distance_to_point()