def test_find_all_found(self, mock_dao): expected_result = mock_dao.return_value = \ call_log_1, call_log_2 = [Mock(CallLog), Mock(CallLog)] result = services.find_all() assert_that(result, equal_to(expected_result))
def test_find_all_not_found(self, mock_dao): expected_result = mock_dao.return_value = [] result = services.find_all() assert_that(result, equal_to(expected_result))
def _list_all(): call_logs = services.find_all() return _list_call_logs(call_logs)