Lines Matching refs:dt2

549         dt2 = dt + delta
550 self.assertEqual(dt2, dt + days)
552 dt2 = delta + dt
553 self.assertEqual(dt2, dt + days)
555 dt2 = dt - delta
556 self.assertEqual(dt2, dt - days)
562 dt2 = dt + delta
563 self.assertEqual(dt2, dt + days)
565 dt2 = delta + dt
566 self.assertEqual(dt2, dt + days)
568 dt2 = dt - delta
569 self.assertEqual(dt2, dt - days)
593 dt2 = eval(s)
594 self.assertEqual(dt, dt2)
597 dt2 = self.theclass(dt.year, dt.month, dt.day)
598 self.assertEqual(dt, dt2)
1145 dt2 = C(*args, **{'extra': 7})
1147 self.assertEqual(dt2.__class__, C)
1148 self.assertEqual(dt2.theAnswer, 42)
1149 self.assertEqual(dt2.extra, 7)
1150 self.assertEqual(dt1.toordinal(), dt2.toordinal())
1151 self.assertEqual(dt2.newmeth(-7), dt1.year + dt1.month - 7)
1222 dt2 = eval(s)
1223 self.assertEqual(dt, dt2)
1226 dt2 = self.theclass(dt.year, dt.month, dt.day,
1229 self.assertEqual(dt, dt2)
1291 dt2 = self.theclass(2002, 3, 1, 10, 0, 0)
1294 self.assertTrue(dt2 > dt3)
1303 dt2 = dt1 + us
1304 self.assertEqual(dt2 - dt1, us)
1305 self.assertTrue(dt1 < dt2)
1718 dt2 = C(*args, **{'extra': 7})
1720 self.assertEqual(dt2.__class__, C)
1721 self.assertEqual(dt2.theAnswer, 42)
1722 self.assertEqual(dt2.extra, 7)
1723 self.assertEqual(dt1.toordinal(), dt2.toordinal())
1724 self.assertEqual(dt2.newmeth(-7), dt1.year + dt1.month +
2019 dt2 = C(*args, **{'extra': 7})
2021 self.assertEqual(dt2.__class__, C)
2022 self.assertEqual(dt2.theAnswer, 42)
2023 self.assertEqual(dt2.extra, 7)
2024 self.assertEqual(dt1.isoformat(), dt2.isoformat())
2025 self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.second - 7)
2434 dt2 = C(*args, **{'extra': 7})
2436 self.assertEqual(dt2.__class__, C)
2437 self.assertEqual(dt2.theAnswer, 42)
2438 self.assertEqual(dt2.extra, 7)
2439 self.assertEqual(dt1.utcoffset(), dt2.utcoffset())
2440 self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.second - 7)
3042 dt2 = C(*args, **{'extra': 7})
3044 self.assertEqual(dt2.__class__, C)
3045 self.assertEqual(dt2.theAnswer, 42)
3046 self.assertEqual(dt2.extra, 7)
3047 self.assertEqual(dt1.utcoffset(), dt2.utcoffset())
3048 self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.year - 7)