コード例 #1
0
ファイル: test_application.py プロジェクト: alanoe/pulp
    def test_calls_common_initialization(self, check_package_versions, initialize, start):
        """
        Assert that _initialize_web_services() calls the common initialization code.
        """
        application._initialize_web_services()

        check_package_versions.assert_called_once_with()
        initialize.assert_called_once_with()
        start.assert_called_once_with()
コード例 #2
0
ファイル: test_application.py プロジェクト: alanoe/pulp
    def test_starts_logging(self, check_package_versions, start_logging, initialize, start):
        """
        Assert that _initialize_web_services() starts logging.
        """
        application._initialize_web_services()

        check_package_versions.assert_called_once_with()
        start_logging.assert_called_once_with()
        initialize.assert_called_once_with()
        start.assert_called_once_with()
コード例 #3
0
ファイル: test_application.py プロジェクト: taftsanders/pulp
    def test_calls_common_initialization(self, check_package_versions,
                                         initialize, start):
        """
        Assert that _initialize_web_services() calls the common initialization code.
        """
        application._initialize_web_services()

        check_package_versions.assert_called_once_with()
        initialize.assert_called_once_with()
        start.assert_called_once_with()
コード例 #4
0
ファイル: test_application.py プロジェクト: taftsanders/pulp
    def test_starts_logging(self, check_package_versions, start_logging,
                            initialize, start):
        """
        Assert that _initialize_web_services() starts logging.
        """
        application._initialize_web_services()

        check_package_versions.assert_called_once_with()
        start_logging.assert_called_once_with()
        initialize.assert_called_once_with()
        start.assert_called_once_with()