def test_people_personal_contact_created(self): expected = {'class': 'people_personal_contact_created'} result = CTIMessageFormatter.people_personal_contact_created() assert_that(result, equal_to(expected))
def _send_personal_contact_created(self, user_id, result): xuserid = 'xivo/{user_id}'.format(user_id=user_id) message = CTIMessageFormatter.people_personal_contact_created() self._cti_server.send_to_cti_client(xuserid, message)