コード例 #1
0
ファイル: test_services.py プロジェクト: litnimax/xivo-confd
    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))
コード例 #2
0
    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))
コード例 #3
0
 def _list_all():
     call_logs = services.find_all()
     return _list_call_logs(call_logs)
コード例 #4
0
ファイル: test_services.py プロジェクト: litnimax/xivo-confd
    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))
コード例 #5
0
    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))
コード例 #6
0
ファイル: actions.py プロジェクト: litnimax/xivo-confd
 def _list_all():
     call_logs = services.find_all()
     return _list_call_logs(call_logs)