tests.structure.test_universe_laws

tests.structure.test_universe_laws#

Unit tests for UniverseLaws object.

Functions

test_uni_laws_attr_readonly()

Ensure all attributes are readonly, and raise appropriate errors when write is attempted.

test_uni_laws_inheritance()

Ensure UniverseLaws trees up to correct subclass.

test_uni_laws_init_defaults()

Ensure UniverseLaws have sane defaults out of the box.

test_uni_laws_init_nondefault()

Ensure UniverseLaws instantiated with non-default options retains them.

test_uni_laws_wrong_edge_rules()

Ensure invalid edge rules are detected and raise an error.