def test_date_formats(): u = Util() assert u._date_formats(1582397529) == { "date": "February 22, 2020", "datetime": "February 22, 2020 18:52:09", "iso_date": "2020-02-22", "iso_datetime": "2020-02-22 18:52:09", "timeago": '<span class="timeago" datetime="2020-02-22T18:52:09+00:00" locale="en"></span>', }
def test_date_formats(): u = Util() assert u._date_formats(1582397529) == { "date": "February 22, 2020", "datetime": "February 22, 2020 18:52:09", "iso_date": "2020-02-22", "iso_datetime": "2020-02-22 18:52:09", "timeago": "<span class='timeago' datetime='1582397529000' locale='en'></span>", }