def test_external_logs(self, mock_get_logger):
     under_test.default_logging(
         under_test.Verbosity.DEBUG,
         under_test.LogFormat.JSON,
         external_logs=["some_external_log"],
     )
     mock_get_logger.assert_called_with("some_external_log")
     mock_get_logger.return_value.setLevel.assert_called_with(logging.WARNING)
 def test_json_logging(self, mock_dict_config, mock_configure):
     under_test.default_logging(under_test.Verbosity.WARNING,
                                log_format=under_test.LogFormat.JSON)
     mock_dict_config.assert_called_once()
     mock_configure.assert_called_once()
 def test_text_logging(self, mock_basic_config, mock_configure):
     under_test.default_logging(under_test.Verbosity.WARNING,
                                log_format=under_test.LogFormat.TEXT)
     mock_basic_config.assert_called_once()
     mock_configure.assert_called_once()