def test_datetime_tzinfo():
 class TZm6(datetime.tzinfo, ):
  def utcoffset(self, dt):
   return datetime.timedelta(hours=(-6))
 d = datetime.datetime(2002, 1, 2, 10, 3, 4, tzinfo=TZm6())
 t = Time(d)
 assert (t.value == datetime.datetime(2002, 1, 2, 16, 3, 4))

def test_datetime_tzinfo ( ) : class TZm6 ( datetime . tzinfo , ) : def utcoffset ( self , dt ) : return datetime . timedelta ( hours = ( - 6 ) ) d = datetime . datetime ( 2002 , 1 , 2 , 10 , 3 , 4 , tzinfo = TZm6 ( ) ) t = Time ( d ) assert ( t . value == datetime . datetime ( 2002 , 1 , 2 , 16 , 3 , 4 ) )
test #3160 that time zone info in datetime objects is respected .