コード例 #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()