diff --git a/crmEntity_test.go b/crmEntity_test.go index 406916c..8efa34e 100644 --- a/crmEntity_test.go +++ b/crmEntity_test.go @@ -149,4 +149,15 @@ func TestSearchEntityByID(t *testing.T) { id := entity.(crmdLead).ID obj, err := crmFindEntityByID("Lead", id) AssertEqual(t, obj.(crmdLead).ID, id, "we should found the right id") + + deleted, _ := crmDeleteEntity("Lead", id) + AssertEqual(t, deleted, true, "deleting temp record should be true") + +} + +func TestDeleteNonExistRecord(t *testing.T) { + id := "someidthatisnotexistatall" + deleted, _ := crmDeleteEntity("Lead", id) + AssertEqual(t, deleted, false, "deleting non-exist record should be false") + }