示例#1
0
    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
    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
    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
    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()