Ejemplo n.º 1
0
 def test_1150(self):
     """http_datetime_str_from_dt(): Inludes timezone (MST, UTC-7)"""
     assert dt.http_datetime_str_from_dt(
         T1_MST) == 'Sat, 02 Jan 1999 10:04:05 GMT'
Ejemplo n.º 2
0
 def test_1160(self):
     """http_datetime_str_from_dt() includes timezone (YEKT, UTC+6)"""
     assert dt.http_datetime_str_from_dt(
         T1_YEKT) == 'Fri, 01 Jan 1999 21:04:05 GMT'
Ejemplo n.º 3
0
 def test_1140(self):
     """http_datetime_str_from_dt(): Assumes naive datetime is in UTC"""
     assert dt.http_datetime_str_from_dt(
         T1_NAIVE) == 'Sat, 02 Jan 1999 03:04:05 GMT'