func TestAddAct(t *testing.T) {
	l := line.Line{
		Command: "353",
		Content: "@alice bob charles",
		Channel: "test"}
	u := NewUserManager()
	u.Act(&l)
	if !has(u, "test", "alice") {
		t.Error("alice missing")
	}
	if !has(u, "test", "bob") {
		t.Error("bob missing")
	}
	if !has(u, "test", "charles") {
		t.Error("charles missing")
	}
}
Add several users at once
package user
import (
	"github.com/BotBotMe/botbot-bot/line"
	"testing"
)
func TestAdd(t *testing.T) {
	u := NewUserManager()
	u.add("bob", "test")
	u.add("bob", "test2")
	u.add("bill", "test")
	_, ok := u.channels["test"]
	if !ok {
		t.Error("UserManager did not have channel")
	}
	if !has(u, "test", "bob") {
		t.Error("Channel test did not have bob")
	}
	if !has(u, "test", "bill") {
		t.Error("Channel test did not have bill")
	}
	if !has(u, "test2", "bob") {
		t.Error("Channel test2 did not have bob")
	}
}
func TestRemove(t *testing.T) {
	u := NewUserManager()
	u.add("bob", "test")
	u.add("bob", "test2")
	u.remove("bob")
	if has(u, "test", "bob") {
		t.Error("User not removed from test")
	}
	if has(u, "test2", "bob") {
		t.Error("User not removed from test2")
	}
}
func TestReplace(t *testing.T) {
	u := NewUserManager()
	u.add("bob", "test")
	u.add("bob", "test2")
	u.add("bill", "test")
	u.replace("bob", "bob|away")
	if has(u, "test", "bob") {
		t.Error("bob was not renamed in test")
	}
	if !has(u, "test", "bob|away") {
		t.Error("bob|away not found in test")
	}
	if has(u, "test2", "bob") {
		t.Error("bob was not renamed in test2")
	}
	if !has(u, "test2", "bob|away") {
		t.Error("bob|away not found in test2")
	}
	if !has(u, "test", "bill") {
		t.Error("bill was renamed or removed")
	}
}