def test_logging_no_logfile(self, mock_config):
        mock_conf = self.mock_conf
        mock_conf.LOGFILE = None
        __main__.set_logfile(mock_conf)

        self.assertFalse(mock_config.called)
    def test_logging_no_logfile(self, mock_config):
        mock_conf = self.mock_conf
        mock_conf.LOGFILE = None
        __main__.set_logfile(mock_conf)

        self.assertFalse(mock_config.called)
    def test_logging(self, mock_basic_config):
        expected_config_call = mock.call(filename=self.logfile_name)

        __main__.set_logfile(self.mock_conf)

        self.assertEqual(expected_config_call, mock_basic_config.call_args)
    def test_logging(self, mock_basic_config):
        expected_config_call = mock.call(filename=self.logfile_name)

        __main__.set_logfile(self.mock_conf)

        self.assertEqual(expected_config_call, mock_basic_config.call_args)