def METHOD_NAME(self, date, message):  # lint-amnesty, pylint: disable=missing-function-docstring
    # First, check that the formatted version is in there
    assert strftime_localized(date, 'SHORT_DATE') in message
    # But also that the machine-readable version is in there
    assert 'data-datetime="%s"' % date.isoformat() in message