forked from cerc-io/laconicd-deprecated
22 lines
622 B
Go
22 lines
622 B
Go
package bond_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/cosmos/cosmos-sdk/simapp"
|
|
"github.com/stretchr/testify/require"
|
|
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
|
|
app "github.com/tharsis/ethermint/app"
|
|
bondtypes "github.com/tharsis/ethermint/x/bond/types"
|
|
)
|
|
|
|
func TestItCreatesModuleAccountOnInitBlock(t *testing.T) {
|
|
app := app.Setup(t, false, func(ea *app.EthermintApp, genesis simapp.GenesisState) simapp.GenesisState {
|
|
return genesis
|
|
})
|
|
ctx := app.BaseApp.NewContext(false, tmproto.Header{})
|
|
|
|
acc := app.AccountKeeper.GetModuleAccount(ctx, bondtypes.ModuleName)
|
|
require.NotNil(t, acc)
|
|
}
|