forked from spaceweasel/mango
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathidentity_test.go
More file actions
39 lines (34 loc) · 862 Bytes
/
identity_test.go
File metadata and controls
39 lines (34 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package mango
import "testing"
func TestBasicIdentityUserIDReturnsUsername(t *testing.T) {
want := "Jeff"
i := BasicIdentity{Username: "Jeff"}
got := i.UserID()
if got != want {
t.Errorf("UserID = %q, want %q", got, want)
}
}
func TestBasicIdentityEmailReturnsEmptyString(t *testing.T) {
want := ""
i := BasicIdentity{Username: "Jeff"}
got := i.Email()
if got != want {
t.Errorf("Email = %q, want %q", got, want)
}
}
func TestBasicIdentityFullnameReturnsEmptyString(t *testing.T) {
want := ""
i := BasicIdentity{Username: "Jeff"}
got := i.Fullname()
if got != want {
t.Errorf("Fullname = %q, want %q", got, want)
}
}
func TestBasicIdentityOrganizationReturnsEmptyString(t *testing.T) {
want := ""
i := BasicIdentity{Username: "Jeff"}
got := i.Organization()
if got != want {
t.Errorf("Organization = %q, want %q", got, want)
}
}