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()
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()