Lines Matching refs:dt2
960 dt2 = dt + delta
961 self.assertEqual(dt2, dt + days)
963 dt2 = delta + dt
964 self.assertEqual(dt2, dt + days)
966 dt2 = dt - delta
967 self.assertEqual(dt2, dt - days)
973 dt2 = dt + delta
974 self.assertEqual(dt2, dt + days)
976 dt2 = delta + dt
977 self.assertEqual(dt2, dt + days)
979 dt2 = dt - delta
980 self.assertEqual(dt2, dt - days)
1004 dt2 = eval(s)
1005 self.assertEqual(dt, dt2)
1008 dt2 = self.theclass(dt.year, dt.month, dt.day)
1009 self.assertEqual(dt, dt2)
1614 dt2 = C(*args, **{'extra': 7})
1616 self.assertEqual(dt2.__class__, C)
1617 self.assertEqual(dt2.theAnswer, 42)
1618 self.assertEqual(dt2.extra, 7)
1619 self.assertEqual(dt1.toordinal(), dt2.toordinal())
1620 self.assertEqual(dt2.newmeth(-7), dt1.year + dt1.month - 7)
1799 dt2 = eval(s)
1800 self.assertEqual(dt, dt2)
1803 dt2 = self.theclass(dt.year, dt.month, dt.day,
1806 self.assertEqual(dt, dt2)
1929 dt2 = self.theclass(2002, 3, 1, 10, 0, 0)
1932 self.assertTrue(dt2 > dt3)
1941 dt2 = dt1 + us
1942 self.assertEqual(dt2 - dt1, us)
1943 self.assertTrue(dt1 < dt2)
2577 dt2 = C(*args, **{'extra': 7})
2579 self.assertEqual(dt2.__class__, C)
2580 self.assertEqual(dt2.theAnswer, 42)
2581 self.assertEqual(dt2.extra, 7)
2582 self.assertEqual(dt1.toordinal(), dt2.toordinal())
2583 self.assertEqual(dt2.newmeth(-7), dt1.year + dt1.month +
3188 dt2 = C(*args, **{'extra': 7})
3190 self.assertEqual(dt2.__class__, C)
3191 self.assertEqual(dt2.theAnswer, 42)
3192 self.assertEqual(dt2.extra, 7)
3193 self.assertEqual(dt1.isoformat(), dt2.isoformat())
3194 self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.second - 7)
3765 dt2 = C(*args, **{'extra': 7})
3767 self.assertEqual(dt2.__class__, C)
3768 self.assertEqual(dt2.theAnswer, 42)
3769 self.assertEqual(dt2.extra, 7)
3770 self.assertEqual(dt1.utcoffset(), dt2.utcoffset())
3771 self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.second - 7)
4461 dt2 = C(*args, **{'extra': 7})
4463 self.assertEqual(dt2.__class__, C)
4464 self.assertEqual(dt2.theAnswer, 42)
4465 self.assertEqual(dt2.extra, 7)
4466 self.assertEqual(dt1.utcoffset(), dt2.utcoffset())
4467 self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.year - 7)
5715 dt2 = datetime(2000, 2, 4, tzinfo=tz_exp)
5717 self.assertEqual(dt1, dt2)
5718 self.assertEqual(dt1.tzname(), dt2.tzname())
5741 dt2 = datetime(2000, 2, 4, tzinfo=non_utc_exp)
5743 self.assertEqual(dt1, dt2)
5744 self.assertEqual(dt1.tzname(), dt2.tzname())