tests.structure.test_base#
Unit tests for structure.base module.
Functions
Ensure we can assign attributes to an instance of BaseObject using the dot access. |
|
Ensure we can create base objects with no attributes. |
|
Ensure we can delete attributes of base objects. |
|
Ensure we can delete items from base objects. |
|
Ensure access to the masked attributes is forwarded to getattr. |
|
Ensure attributes passed to the instantiation are retained. |
|
Ensure the correct error is raised when handing invalid objects to the attributes during instantiation. |
|
Ensure universes passed to the instantiator are deduplicated. |
|
Ensure we can instantiate a BaseObject with universes given as a genexpr. |
|
Ensure we can instantiate a BaseObject with universes given as a list. |
|
Ensure we can instantiate a BaseObject with universes given as a set. |
|
Ensure we can instantiate a BaseObject with universes given as a tuple. |
|
Ensure attributes can be set and retrieved from both dot and getitem approaches. |
|
Ensure we can assign attributes to an instance of BaseObject using the item access method. |
|
Ensure the universes attribute is not exposed. |