<filename>tests/test_accountliquidator.py
from .context import mango


def test_account_liquidator_constructor() -> None:
    succeeded = False
    try:
        mango.AccountLiquidator()  # type: ignore[abstract]
    except TypeError:
        # Can't instantiate the abstract base class.
        succeeded = True
    assert succeeded


def test_null_account_liquidator_constructor() -> None:
    actual = mango.NullAccountLiquidator()
    assert actual is not None

<filename>tests/test_accountliquidator.py
from .context import mango


def test_account_liquidator_constructor() -> None:
    succeeded = False
    try:
        mango.AccountLiquidator()  # type: ignore[abstract]
    except TypeError:
        # Can't instantiate the abstract base class.
        succeeded = True
    assert succeeded


def test_null_account_liquidator_constructor() -> None:
    actual = mango.NullAccountLiquidator()
    assert actual is not None

# type: ignore[abstract] # Can't instantiate the abstract base class.