mpinterfaces.tests package

Submodules

mpinterfaces.tests.test_default_logger module

tests for mpinterfaces

class mpinterfaces.tests.test_default_logger.TestGetDefaultLogger(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]
test_log()[source]

mpinterfaces.tests.test_get_r_list module

tests for mpinterfaces.transformations

class mpinterfaces.tests.test_get_r_list.TestGetRList(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]
tearDown()[source]
test_altered_error_margin()[source]
test_half()[source]
test_half_decimal()[source]
test_half_error_margin()[source]

mpinterfaces.tests.test_get_trans_matrices module

tests for mpinterfaces.transformations

class mpinterfaces.tests.test_get_trans_matrices.TestGetTransMatrices(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test get_trans_matrices through list_trans

test_0()[source]
test_1()[source]
test_10()[source]
test_12()[source]
test_2()[source]
test_3()[source]
test_9()[source]
mpinterfaces.tests.test_get_trans_matrices.list_trans(number)[source]

Turn the get_trans_matrices of number into a list, with each pair of numbers being a single entry on that list. The is preceding a refactor where get_trans_matrices will output the output of this function

mpinterfaces.tests.test_get_uv module

tests for mpinterfaces.transformations

class mpinterfaces.tests.test_get_uv.TestGetUV(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_uv_1_1()[source]
test_uv_2_1()[source]
test_uv_2_2()[source]
test_uv_addition()[source]
test_uv_subtraction()[source]

mpinterfaces.tests.test_rest module

class mpinterfaces.tests.test_rest.RestTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_get_data_for_mw_43()[source]
test_get_structure_by_material_id_for_mw_43()[source]

mpinterfaces.tests.test_utils module

class mpinterfaces.tests.test_utils.UtilsTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_align_c_axis_for_already_aligned_structure()[source]
test_align_c_axis_for_non_aligned_structure()[source]
test_ensure_vacuum_for_SiP()[source]
test_get_magmom_string_for_FeCl2()[source]
test_get_markovian_path()[source]
test_get_rotation_matrix()[source]
test_get_run_cmmnd()[source]
test_get_structure_type_for_0D_material()[source]
test_get_structure_type_for_1D_material()[source]
test_get_structure_type_for_conventional_material()[source]
test_get_structure_type_for_layered_material()[source]
test_is_converged()[source]
test_remove_z_kpoints()[source]
test_write_circle_mesh_kpoints()[source]

Module contents