def test_wrong_name(): prep_test_assets() Account.define(name="Piggybank", asset="EN", amount=0) Account.get("PiggyBank_whoops")
def test_get_by_name(): prep_test_assets() ac0 = Account.define(name="PiggyBank", asset="EN", amount=0) ac1 = Account.get("PiggyBank") assert_true(ac0 is ac1)