| import ( | import ( | ||||
| "encoding/json" | "encoding/json" | ||||
| "log" | |||||
| "testing" | "testing" | ||||
| "time" | "time" | ||||
| ) | ) | ||||
| } | } | ||||
| func TestcrmdLeadByCompleteInfo(t *testing.T) { | |||||
| func TestCrmdLeadByCompleteInfo(t *testing.T) { | |||||
| msg := `{ | msg := `{ | ||||
| "id": "58f4aa0682ea74bb8", | "id": "58f4aa0682ea74bb8", | ||||
| "name": "same email", | "name": "same email", | ||||
| AssertEqual(t, len(r.List), 0, "") | AssertEqual(t, len(r.List), 0, "") | ||||
| } | } | ||||
| func TestFindOpenIDOnline(t *testing.T) { | |||||
| info, found, err := crmFindOpenID("weid1") | |||||
| log.Println(info) | |||||
| log.Println(found) | |||||
| log.Println(err) | |||||
| } | |||||
| func TestLeadJsonCompose(t *testing.T) { | |||||
| info := crmdLead{} | |||||
| info.FirstName = "中文First" | |||||
| } | |||||
| func TestGetLead(t *testing.T) { | func TestGetLead(t *testing.T) { | ||||
| e := crmdLead{} | e := crmdLead{} |