remove account_test

This commit is contained in:
mossid 2018-03-31 20:20:44 +02:00
parent 9a4f9345cf
commit 8af121a840
1 changed files with 0 additions and 36 deletions

View File

@ -1,36 +0,0 @@
package types
import (
"testing"
"github.com/stretchr/testify/assert"
sdk "github.com/cosmos/cosmos-sdk/types"
wire "github.com/cosmos/cosmos-sdk/wire"
"github.com/cosmos/cosmos-sdk/x/auth"
)
func TestAppAccount(t *testing.T) {
cdc := wire.NewCodec()
addr := sdk.Address([]byte("address"))
acc := &AppAccount{
BaseAccount: auth.BaseAccount{
Address: addr,
Coins: sdk.Coins{},
},
Name: "",
}
bz, err := cdc.MarshalBinary(acc)
assert.Nil(t, err)
decode := GetAccountDecoder(cdc)
res, err := decode(bz)
assert.Nil(t, err)
assert.Equal(t, acc, res)
name := t.Name()
acc.SetName(name)
accname := acc.GetName()
assert.Equal(t, name, accname)
}