def METHOD_NAME(self, getLogger, WatchedFileHandler):
    logger = logging.getLogger.return_value = Mock()
    logger.handlers = []
    setup_logging(loglevel=logging.DEBUG, logfile='/var/logfile')
    logger.setLevel.assert_called_with(logging.DEBUG)
    logger.addHandler.assert_called()
    WatchedFileHandler.assert_called()