Lines Matching refs:dt1
1144 dt1 = self.theclass(*args)
1150 self.assertEqual(dt1.toordinal(), dt2.toordinal())
1151 self.assertEqual(dt2.newmeth(-7), dt1.year + dt1.month - 7)
1290 dt1 = self.theclass(2002, 3, 1, 9, 0, 0)
1293 self.assertEqual(dt1, dt3)
1301 dt1 = self.theclass(MAXYEAR, 12, 31, 23, 59, 59, 999998)
1303 dt2 = dt1 + us
1304 self.assertEqual(dt2 - dt1, us)
1305 self.assertTrue(dt1 < dt2)
1717 dt1 = self.theclass(*args)
1723 self.assertEqual(dt1.toordinal(), dt2.toordinal())
1724 self.assertEqual(dt2.newmeth(-7), dt1.year + dt1.month +
1725 dt1.second - 7)
2018 dt1 = self.theclass(*args)
2024 self.assertEqual(dt1.isoformat(), dt2.isoformat())
2025 self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.second - 7)
2433 dt1 = self.theclass(*args)
2439 self.assertEqual(dt1.utcoffset(), dt2.utcoffset())
2440 self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.second - 7)
3041 dt1 = self.theclass(*args)
3047 self.assertEqual(dt1.utcoffset(), dt2.utcoffset())
3048 self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.year - 7)