mango-explorer/tests/test_accountliquidator.py

17 lines
423 B
Python

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