def test_find_all_found(self): call_logs = (self._mock_call_log(), self._mock_call_log()) call_log_dao.create_from_list(call_logs) result = call_log_dao.find_all() assert_that(result, has_length(2))
def test_find_all_not_found(self): expected_result = [] result = call_log_dao.find_all() assert_that(result, equal_to(expected_result))
def find_all(): return dao.find_all()