You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
blog/test/test_rfc_2822_date.py

14 lines
384 B
Python

5 years ago
import unittest
import makesite
class RFC822DateTest(unittest.TestCase):
def test_epoch(self):
self.assertEqual(makesite.rfc_2822_format('1970-01-01'),
'Thu, 01 Jan 1970 00:00:00 +0000')
def test_2018_06_16(self):
self.assertEqual(makesite.rfc_2822_format('2018-06-16'),
'Sat, 16 Jun 2018 00:00:00 +0000')