diff --git a/person/person._test.go b/person/person_test.go similarity index 56% rename from person/person._test.go rename to person/person_test.go index 32c596f..64c4f86 100644 --- a/person/person._test.go +++ b/person/person_test.go @@ -6,29 +6,8 @@ import ( func TestPerson(t *testing.T) { person := NewPersonWithCustomID("test") - - person.AddPermission("test") - if !person.HasPermission("test") { - t.Error("person should have permission") - } - - person.RemovePermission("test") - if person.HasPermission("test") { - t.Error("person should not have permission") - } - - person.AddFriend("test") - if len(person.Friends) != 1 { - t.Error("person should have 1 friend") - } - - person.RemoveFriend("test") - if len(person.Friends) != 0 { - t.Error("person should have no friends") - } - if person.ID != "test" { - t.Error("person should have id of test") + t.Error("person should have id of test. has " + person.ID) } profilesToTest := []string{ "common_core", "athena", "common_public", "profile0", "collections", "creative" } @@ -40,10 +19,6 @@ func TestPerson(t *testing.T) { if person.GetProfileFromType(profile).Type != profile { t.Error("person should have profile with id of " + profile) } - - if person.GetProfileFromType(profile).PersonID != person.ID { - t.Error("person should have profile with person id of " + person.ID) - } } item := NewItem("Test:Test", 1)