def test_rountdrip(self):
        from time import time

        from waitress.utilities import build_http_date, parse_http_date

        t = int(time())
        self.assertEqual(t, parse_http_date(build_http_date(t)))
Exemple #2
0
 def test_rountdrip(self):
     from waitress.utilities import build_http_date, parse_http_date
     from time import time
     t = int(time())
     self.assertEqual(t, parse_http_date(build_http_date(t)))
Exemple #3
0
 def _callFUT(self, v):
     from waitress.utilities import parse_http_date
     return parse_http_date(v)