um, it actually does not check that anything is logged, you should check that logger was called with some expected message.

See e.g. https://github.com/SUSE/connect/pull/67/files#diff-5e773f61d71ef839b73fe19c3b8e8afdR42, there is a check that a message was logged correctly.