def test_people_headers_result(self): headers = {'column_headers': s.headers, 'column_types': s.types} expected = { 'class': 'people_headers_result', 'column_headers': s.headers, 'column_types': s.types } result = CTIMessageFormatter.people_headers_result(headers) assert_that(result, equal_to(expected))
def test_people_headers_result(self): headers = { 'column_headers': sentinel.headers, 'column_types': sentinel.types } expected = { 'class': 'people_headers_result', 'column_headers': sentinel.headers, 'column_types': sentinel.types } result = CTIMessageFormatter.people_headers_result(headers) assert_that(result, equal_to(expected))
def _send_headers_result(self, user_id, headers): xuserid = 'xivo/{user_id}'.format(user_id=user_id) message = CTIMessageFormatter.people_headers_result(headers) self._cti_server.send_to_cti_client(xuserid, message)
def _send_headers_result(self, user_id, headers): xuserid = 'xivo/{user_id}'.format(user_id=user_id) message = CTIMessageFormatter.people_headers_result(headers) self._cti_server.send_to_cti_client(xuserid, message)