from terra_sdk.core.auth import Account, PeriodicVestingAccount


def test_deserializes_account_example(load_json_examples):
    examples = load_json_examples("./Account.data.json")
    for example in examples:
        assert Account.from_data(example).to_data() == example


def test_deserializes_lazy_graded_vesting_account_example(load_json_examples):
    examples = load_json_examples("./PeriodicVestingAccount.data.json")
    for example in examples:
        assert PeriodicVestingAccount.from_data(example).to_data() == example

0d1463adf2f0180505790216756d19dc755cd82a
<mask token>

<mask token>


def test_deserializes_account_example(load_json_examples):
    examples = load_json_examples('./Account.data.json')
    for example in examples:
        assert Account.from_data(example).to_data() == example


<mask token>

<mask token>


def test_deserializes_account_example(load_json_examples):
    examples = load_json_examples('./Account.data.json')
    for example in examples:
        assert Account.from_data(example).to_data() == example


def test_deserializes_lazy_graded_vesting_account_example(load_json_examples):
    examples = load_json_examples('./PeriodicVestingAccount.data.json')
    for example in examples:
        assert PeriodicVestingAccount.from_data(example).to_data() == example

from terra_sdk.core.auth import Account, PeriodicVestingAccount


def test_deserializes_account_example(load_json_examples):
    examples = load_json_examples('./Account.data.json')
    for example in examples:
        assert Account.from_data(example).to_data() == example


def test_deserializes_lazy_graded_vesting_account_example(load_json_examples):
    examples = load_json_examples('./PeriodicVestingAccount.data.json')
    for example in examples:
        assert PeriodicVestingAccount.from_data(example).to_data() == example

from terra_sdk.core.auth import Account, PeriodicVestingAccount


def test_deserializes_account_example(load_json_examples):
    examples = load_json_examples("./Account.data.json")
    for example in examples:
        assert Account.from_data(example).to_data() == example


def test_deserializes_lazy_graded_vesting_account_example(load_json_examples):
    examples = load_json_examples("./PeriodicVestingAccount.data.json")
    for example in examples:
        assert PeriodicVestingAccount.from_data(example).to_data() == example
