We should avoiding duplicating parts of the assertion code in the assertion message. If that's needed a lot, write a helper or custom assertion where you pass the pattern argument as a separate argument and the custom assertion also uses that as the message.