<filename>tests/test_type_property.py
from visions import Integer, IPAddress, VisionsBaseType
from visions.relations import TypeRelation
from visions.types.type import RelationsIterManager


def test_property_base():
    """Assert that _relations is initialized"""

    assert VisionsBaseType._relations is None


def test_property_types():
    """Assert that the relations property contains a list"""
    assert isinstance(Integer.relations, RelationsIterManager) and all(
        isinstance(r, TypeRelation) for r in Integer.relations
    )
    assert isinstance(IPAddress.relations, RelationsIterManager) and all(
        isinstance(r, TypeRelation) for r in IPAddress.relations
    )

<filename>tests/test_type_property.py
from visions import Integer, IPAddress, VisionsBaseType
from visions.relations import TypeRelation
from visions.types.type import RelationsIterManager


def test_property_base():
    """Assert that _relations is initialized"""

    assert VisionsBaseType._relations is None


def test_property_types():
    """Assert that the relations property contains a list"""
    assert isinstance(Integer.relations, RelationsIterManager) and all(
        isinstance(r, TypeRelation) for r in Integer.relations
    )
    assert isinstance(IPAddress.relations, RelationsIterManager) and all(
        isinstance(r, TypeRelation) for r in IPAddress.relations
    )

Assert that _relations is initialized Assert that the relations property contains a list