def test_find_all_in_period_not_found(self, mock_dao): expected_result = mock_dao.return_value = [] start, end = Mock(), Mock() result = services.find_all_in_period(start, end) mock_dao.assert_called_once_with(start, end) assert_that(result, equal_to(expected_result))
def _list_period(): start, end = _extract_datetimes(request.args) call_logs = services.find_all_in_period(start, end) return _list_call_logs(call_logs)