Lines Matching refs:dt2
1064 dt2 = dt + delta
1065 self.assertEqual(dt2, dt + days)
1067 dt2 = delta + dt
1068 self.assertEqual(dt2, dt + days)
1070 dt2 = dt - delta
1071 self.assertEqual(dt2, dt - days)
1077 dt2 = dt + delta
1078 self.assertEqual(dt2, dt + days)
1080 dt2 = delta + dt
1081 self.assertEqual(dt2, dt + days)
1083 dt2 = dt - delta
1084 self.assertEqual(dt2, dt - days)
1108 dt2 = eval(s)
1109 self.assertEqual(dt, dt2)
1112 dt2 = self.theclass(dt.year, dt.month, dt.day)
1113 self.assertEqual(dt, dt2)
1724 dt2 = C(*args, **{'extra': 7})
1726 self.assertEqual(dt2.__class__, C)
1727 self.assertEqual(dt2.theAnswer, 42)
1728 self.assertEqual(dt2.extra, 7)
1729 self.assertEqual(dt1.toordinal(), dt2.toordinal())
1730 self.assertEqual(dt2.newmeth(-7), dt1.year + dt1.month - 7)
1986 dt2 = eval(s)
1987 self.assertEqual(dt, dt2)
1990 dt2 = self.theclass(dt.year, dt.month, dt.day,
1993 self.assertEqual(dt, dt2)
2116 dt2 = self.theclass(2002, 3, 1, 10, 0, 0)
2119 self.assertTrue(dt2 > dt3)
2128 dt2 = dt1 + us
2129 self.assertEqual(dt2 - dt1, us)
2130 self.assertTrue(dt1 < dt2)
2623 dt2 = self.theclass(2003, 1, 2, 4, 5, 6)
2632 ('%j', '2/03 04am:05:06', '%j/%y %I%p:%M:%S',dt2),
2633 ('%I', '02/03 4am:05:06', '%j/%y %I%p:%M:%S',dt2),
2801 dt2 = C(*args, **{'extra': 7})
2803 self.assertEqual(dt2.__class__, C)
2804 self.assertEqual(dt2.theAnswer, 42)
2805 self.assertEqual(dt2.extra, 7)
2806 self.assertEqual(dt1.toordinal(), dt2.toordinal())
2807 self.assertEqual(dt2.newmeth(-7), dt1.year + dt1.month +
3447 dt2 = C(*args, **{'extra': 7})
3449 self.assertEqual(dt2.__class__, C)
3450 self.assertEqual(dt2.theAnswer, 42)
3451 self.assertEqual(dt2.extra, 7)
3452 self.assertEqual(dt1.isoformat(), dt2.isoformat())
3453 self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.second - 7)
4024 dt2 = C(*args, **{'extra': 7})
4026 self.assertEqual(dt2.__class__, C)
4027 self.assertEqual(dt2.theAnswer, 42)
4028 self.assertEqual(dt2.extra, 7)
4029 self.assertEqual(dt1.utcoffset(), dt2.utcoffset())
4030 self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.second - 7)
4720 dt2 = C(*args, **{'extra': 7})
4722 self.assertEqual(dt2.__class__, C)
4723 self.assertEqual(dt2.theAnswer, 42)
4724 self.assertEqual(dt2.extra, 7)
4725 self.assertEqual(dt1.utcoffset(), dt2.utcoffset())
4726 self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.year - 7)
5955 dt2 = datetime(2000, 2, 4, tzinfo=tz_exp)
5957 self.assertEqual(dt1, dt2)
5958 self.assertEqual(dt1.tzname(), dt2.tzname())
6046 dt2 = datetime(2000, 2, 4, tzinfo=non_utc_exp)
6048 self.assertEqual(dt1, dt2)
6049 self.assertEqual(dt1.tzname(), dt2.tzname())