예제 #1
0
    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))
예제 #2
0
파일: test_dao.py 프로젝트: jaunis/xivo-dao
    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))
예제 #3
0
    def test_find_all_not_found(self):
        expected_result = []

        result = call_log_dao.find_all()

        assert_that(result, equal_to(expected_result))
예제 #4
0
파일: test_dao.py 프로젝트: jaunis/xivo-dao
    def test_find_all_not_found(self):
        expected_result = []

        result = call_log_dao.find_all()

        assert_that(result, equal_to(expected_result))
예제 #5
0
파일: services.py 프로젝트: jaunis/xivo-dao
def find_all():
    return dao.find_all()