Lines Matching refs:astimezone
1682 self.assertRaises(TypeError, dt.astimezone) # not enough args
1683 self.assertRaises(TypeError, dt.astimezone, f, f) # too many args
1684 self.assertRaises(TypeError, dt.astimezone, dt) # arg wrong type
1685 self.assertRaises(ValueError, dt.astimezone, f) # naive
1686 self.assertRaises(ValueError, dt.astimezone, tz=f) # naive
1692 self.assertRaises(ValueError, dt.astimezone, bog) # naive
1698 self.assertRaises(ValueError, dt.astimezone, alsobog) # also naive
2694 now2 = utcnow.astimezone(weirdtz)
2928 self.assertRaises(ValueError, dt.astimezone, fnone)
2930 self.assertRaises(TypeError, dt.astimezone, None)
2932 x = dt.astimezone(dt.tzinfo)
2938 got = dt.astimezone(fm5h)
3132 self.assertEqual(dt.astimezone(tz), dt)
3134 asutc = dt.astimezone(utc)
3135 there_and_back = asutc.astimezone(tz)
3153 self.assertEqual(there_and_back.astimezone(utc),
3154 dt.astimezone(utc))
3168 nexthour_tz = nexthour_utc.astimezone(tz)
3174 nexthour_tz = nexthour_utc.astimezone(tz)
3184 self.assertEqual(dt.astimezone(tz), dt)
3187 asutc = dt.astimezone(utc)
3188 there_and_back = asutc.astimezone(tz)
3250 got = fourback.astimezone(Eastern).replace(tzinfo=None)
3260 got = sixutc.astimezone(Eastern).replace(tzinfo=None)
3283 astz = asutc.astimezone(tz)
3295 now.astimezone(ok())
3300 self.assertRaises(ValueError, now.astimezone, notok())
3337 got = fstart.replace(tzinfo=utc_real).astimezone(FEastern)
3356 got = fstart.replace(tzinfo=utc_real).astimezone(FEastern)