Files
mattermost/model/team_signup_test.go
=Corey Hulen cf7a05f80f first commit
2015-06-14 23:53:32 -08:00

21 lines
415 B
Go

// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved.
// See License.txt for license information.
package model
import (
"strings"
"testing"
)
func TestTeamSignupJson(t *testing.T) {
team := Team{Id: NewId(), Name: NewId()}
o := TeamSignup{Team: team, Data: "data"}
json := o.ToJson()
ro := TeamSignupFromJson(strings.NewReader(json))
if o.Team.Id != ro.Team.Id {
t.Fatal("Ids do not match")
}
}