14 lines
440 B
Python
14 lines
440 B
Python
from .context import mango
|
|
from .fakes import fake_account_info, fake_seeded_public_key, fake_token
|
|
|
|
from decimal import Decimal
|
|
|
|
|
|
def test_constructor():
|
|
token = fake_token()
|
|
token_value = mango.TokenValue(token, Decimal(6))
|
|
owner = fake_seeded_public_key("token owner")
|
|
actual = mango.TokenAccount(fake_account_info, mango.Version.V1, owner, token_value)
|
|
assert actual is not None
|
|
assert actual.logger is not None
|