mango-explorer/tests/test_constants.py

16 lines
471 B
Python

from .context import mango
# There isn't really a lot to test here that isn't just duplication so instead there are just
# a couple of checks to make sure things have loaded properly.
def test_system_program_address() -> None:
assert str(mango.SYSTEM_PROGRAM_ADDRESS) == "11111111111111111111111111111111"
def test_mango_constants() -> None:
mango_groups = mango.MangoConstants["groups"]
assert mango_groups is not None
assert len(mango_groups) > 0