package keeper_test

import (
	"testing"

	"<%= modulePath %>/x/<%= moduleName %>/types"

	"github.com/stretchr/testify/require"
)

func TestGenesis(t *testing.T) {
	genesisState := types.GenesisState{
		Params: types.DefaultParams(),
		<%= if (isIBC) { %>PortId: types.PortID,<% } %>
	}

	f := initFixture(t)
	err := f.keeper.InitGenesis(f.ctx, genesisState)
	require.NoError(t, err)
	got, err := f.keeper.ExportGenesis(f.ctx)
	require.NoError(t, err)
	require.NotNil(t, got)

	<%= if (isIBC) { %>require.Equal(t, genesisState.PortId, got.PortId)<% } %>
	require.EqualExportedValues(t, genesisState.Params, got.Params)
}