• Home
  • Raw
  • Download

Lines Matching refs:dt2

509         dt2 = dt + delta
510 self.assertEqual(dt2, dt + days)
512 dt2 = delta + dt
513 self.assertEqual(dt2, dt + days)
515 dt2 = dt - delta
516 self.assertEqual(dt2, dt - days)
522 dt2 = dt + delta
523 self.assertEqual(dt2, dt + days)
525 dt2 = delta + dt
526 self.assertEqual(dt2, dt + days)
528 dt2 = dt - delta
529 self.assertEqual(dt2, dt - days)
553 dt2 = eval(s)
554 self.assertEqual(dt, dt2)
557 dt2 = self.theclass(dt.year, dt.month, dt.day)
558 self.assertEqual(dt, dt2)
1105 dt2 = C(*args, **{'extra': 7})
1107 self.assertEqual(dt2.__class__, C)
1108 self.assertEqual(dt2.theAnswer, 42)
1109 self.assertEqual(dt2.extra, 7)
1110 self.assertEqual(dt1.toordinal(), dt2.toordinal())
1111 self.assertEqual(dt2.newmeth(-7), dt1.year + dt1.month - 7)
1182 dt2 = eval(s)
1183 self.assertEqual(dt, dt2)
1186 dt2 = self.theclass(dt.year, dt.month, dt.day,
1189 self.assertEqual(dt, dt2)
1251 dt2 = self.theclass(2002, 3, 1, 10, 0, 0)
1254 self.assertTrue(dt2 > dt3)
1263 dt2 = dt1 + us
1264 self.assertEqual(dt2 - dt1, us)
1265 self.assertTrue(dt1 < dt2)
1678 dt2 = C(*args, **{'extra': 7})
1680 self.assertEqual(dt2.__class__, C)
1681 self.assertEqual(dt2.theAnswer, 42)
1682 self.assertEqual(dt2.extra, 7)
1683 self.assertEqual(dt1.toordinal(), dt2.toordinal())
1684 self.assertEqual(dt2.newmeth(-7), dt1.year + dt1.month +
1979 dt2 = C(*args, **{'extra': 7})
1981 self.assertEqual(dt2.__class__, C)
1982 self.assertEqual(dt2.theAnswer, 42)
1983 self.assertEqual(dt2.extra, 7)
1984 self.assertEqual(dt1.isoformat(), dt2.isoformat())
1985 self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.second - 7)
2394 dt2 = C(*args, **{'extra': 7})
2396 self.assertEqual(dt2.__class__, C)
2397 self.assertEqual(dt2.theAnswer, 42)
2398 self.assertEqual(dt2.extra, 7)
2399 self.assertEqual(dt1.utcoffset(), dt2.utcoffset())
2400 self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.second - 7)
3002 dt2 = C(*args, **{'extra': 7})
3004 self.assertEqual(dt2.__class__, C)
3005 self.assertEqual(dt2.theAnswer, 42)
3006 self.assertEqual(dt2.extra, 7)
3007 self.assertEqual(dt1.utcoffset(), dt2.utcoffset())
3008 self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.year - 7)