| func TestGetLead(t *testing.T) { | func TestGetLead(t *testing.T) { | ||||
| SetupConfig() | SetupConfig() | ||||
| id := "595071f8450974b72" | id := "595071f8450974b72" | ||||
| r, err := crmGetLeadByID(id) | |||||
| r, err := crmGetLead(id) | |||||
| AssertEqual(t, err, nil, "decode json should be nil") | AssertEqual(t, err, nil, "decode json should be nil") | ||||
| AssertEqual(t, r.ID, id, "Lead id should match") | AssertEqual(t, r.ID, id, "Lead id should match") | ||||
| } | } |