def METHOD_NAME(self):
    self._add_hook('test_event', 'sh -c "exit 1"')
    self.load_plugins('hook')
    with capture_log('beets.hook') as logs:
        plugins.send('test_event')
    self.assertIn('hook: hook for test_event exited with status 1', logs)