Tests

Testing the API

Tests for the external package API.

test_different_name_formats_give_the_same_isotope_by_example()[source]
test_element_abundance_is_a_dictionary_with_element_isotopes_keys_and_fraction_values(z: int)[source]
test_illegal_isotope_parameters_cause_valueerror()[source]
test_import_isotope_by_name_does_not_fail(name)[source]
test_importing_non_existent_isotope_raises_attribute_error()[source]
test_isotope_has_same_pickle_value_by_regression_of_U238(data_regression)[source]
test_isotope_is_not_a_zaid(Z: int, A: int, m: int)[source]
test_isotopes_are_cached_as_singletons_by_U235_example()[source]
test_making_zaids_outside_A_range_fails() None[source]
test_making_zaids_outside_Z_range_fails() None[source]
test_making_zaids_outside_m_range_fails() None[source]
test_unpickled_isotope_has_correct_isotope_data_by_Pu239_example()[source]

Testing Known Physical Properties

Tests that the data contained in some Isotopes fits the known values.

If these tests break, it could be because the underlying data was updated, but in any other case this is probably a big no-no.

test_al_properties()[source]
test_u235_properties()[source]