          self.assertEqual(
                  repr(datetime.datetime.fromtimestamp(ts - 3600, tz)),
                  'datetime.datetime(2010, 11, 7, 0, 0, tzinfo=EST)')
          self.assertEqual(
                  repr(datetime.datetime.fromtimestamp(ts, tz)),
                  'datetime.datetime(2010, 11, 7, 1, 0, tzinfo=EST)')
          self.assertEqual(
                  repr(datetime.datetime.fromtimestamp(ts + 3600, tz)),
                  'datetime.datetime(2010, 11, 7, 1, 0, tzinfo=EST)')
  
      def test_copy(self):
 
</s> remove                 repr(datetime.datetime.fromtimestamp(ts + 3600, tz)),
                'datetime.datetime(2010, 11, 7, 1, 0, tzinfo=EST)')
 </s> add             repr(datetime.datetime.fromtimestamp(ts + 3600, tz)),
            'datetime.datetime(2010, 11, 7, 1, 0, tzinfo=EST)') </s> remove                 repr(datetime.datetime.fromtimestamp(ts - 3600, tz)),
                'datetime.datetime(2010, 11, 7, 0, 0, tzinfo=EST)')
 </s> add             repr(datetime.datetime.fromtimestamp(ts - 3600, tz)),
            'datetime.datetime(2010, 11, 7, 0, 0, tzinfo=EST)') </s> remove             self.assertQuerysetEqual(Event.objects.datetimes('dt', 'year'),
                    [datetime.datetime(2010, 1, 1, 0, 0, 0, tzinfo=UTC),
                     datetime.datetime(2011, 1, 1, 0, 0, 0, tzinfo=UTC)],
                    transform=lambda d: d)
            self.assertQuerysetEqual(Event.objects.datetimes('dt', 'month'),
                    [datetime.datetime(2010, 12, 1, 0, 0, 0, tzinfo=UTC),
                     datetime.datetime(2011, 1, 1, 0, 0, 0, tzinfo=UTC)],
                    transform=lambda d: d)
            self.assertQuerysetEqual(Event.objects.datetimes('dt', 'day'),
                    [datetime.datetime(2010, 12, 31, 0, 0, 0, tzinfo=UTC),
                     datetime.datetime(2011, 1, 1, 0, 0, 0, tzinfo=UTC)],
                    transform=lambda d: d)
            self.assertQuerysetEqual(Event.objects.datetimes('dt', 'hour'),
                    [datetime.datetime(2010, 12, 31, 22, 0, 0, tzinfo=UTC),
                     datetime.datetime(2011, 1, 1, 1, 0, 0, tzinfo=UTC)],
                    transform=lambda d: d)
            self.assertQuerysetEqual(Event.objects.datetimes('dt', 'minute'),
                    [datetime.datetime(2010, 12, 31, 22, 30, 0, tzinfo=UTC),
                     datetime.datetime(2011, 1, 1, 1, 30, 0, tzinfo=UTC)],
                    transform=lambda d: d)
            self.assertQuerysetEqual(Event.objects.datetimes('dt', 'second'),
                    [datetime.datetime(2010, 12, 31, 22, 30, 0, tzinfo=UTC),
                     datetime.datetime(2011, 1, 1, 1, 30, 0, tzinfo=UTC)],
                    transform=lambda d: d)
 </s> add             self.assertQuerysetEqual(
                Event.objects.datetimes('dt', 'year'),
                [datetime.datetime(2010, 1, 1, 0, 0, 0, tzinfo=UTC),
                 datetime.datetime(2011, 1, 1, 0, 0, 0, tzinfo=UTC)],
                transform=lambda d: d)
            self.assertQuerysetEqual(
                Event.objects.datetimes('dt', 'month'),
                [datetime.datetime(2010, 12, 1, 0, 0, 0, tzinfo=UTC),
                 datetime.datetime(2011, 1, 1, 0, 0, 0, tzinfo=UTC)],
                transform=lambda d: d)
            self.assertQuerysetEqual(
                Event.objects.datetimes('dt', 'day'),
                [datetime.datetime(2010, 12, 31, 0, 0, 0, tzinfo=UTC),
                 datetime.datetime(2011, 1, 1, 0, 0, 0, tzinfo=UTC)],
                transform=lambda d: d)
            self.assertQuerysetEqual(
                Event.objects.datetimes('dt', 'hour'),
                [datetime.datetime(2010, 12, 31, 22, 0, 0, tzinfo=UTC),
                 datetime.datetime(2011, 1, 1, 1, 0, 0, tzinfo=UTC)],
                transform=lambda d: d)
            self.assertQuerysetEqual(
                Event.objects.datetimes('dt', 'minute'),
                [datetime.datetime(2010, 12, 31, 22, 30, 0, tzinfo=UTC),
                 datetime.datetime(2011, 1, 1, 1, 30, 0, tzinfo=UTC)],
                transform=lambda d: d)
            self.assertQuerysetEqual(
                Event.objects.datetimes('dt', 'second'),
                [datetime.datetime(2010, 12, 31, 22, 30, 0, tzinfo=UTC),
                 datetime.datetime(2011, 1, 1, 1, 30, 0, tzinfo=UTC)],
                transform=lambda d: d) </s> remove         self.assertQuerysetEqual(Event.objects.datetimes('dt', 'year'),
                [datetime.datetime(2011, 1, 1, 0, 0, 0, tzinfo=EAT)],
                transform=lambda d: d)
        self.assertQuerysetEqual(Event.objects.datetimes('dt', 'month'),
                [datetime.datetime(2011, 1, 1, 0, 0, 0, tzinfo=EAT)],
                transform=lambda d: d)
        self.assertQuerysetEqual(Event.objects.datetimes('dt', 'day'),
                [datetime.datetime(2011, 1, 1, 0, 0, 0, tzinfo=EAT)],
                transform=lambda d: d)
        self.assertQuerysetEqual(Event.objects.datetimes('dt', 'hour'),
                [datetime.datetime(2011, 1, 1, 1, 0, 0, tzinfo=EAT),
                 datetime.datetime(2011, 1, 1, 4, 0, 0, tzinfo=EAT)],
                transform=lambda d: d)
        self.assertQuerysetEqual(Event.objects.datetimes('dt', 'minute'),
                [datetime.datetime(2011, 1, 1, 1, 30, 0, tzinfo=EAT),
                 datetime.datetime(2011, 1, 1, 4, 30, 0, tzinfo=EAT)],
                transform=lambda d: d)
        self.assertQuerysetEqual(Event.objects.datetimes('dt', 'second'),
                [datetime.datetime(2011, 1, 1, 1, 30, 0, tzinfo=EAT),
                 datetime.datetime(2011, 1, 1, 4, 30, 0, tzinfo=EAT)],
                transform=lambda d: d)
 </s> add         self.assertQuerysetEqual(
            Event.objects.datetimes('dt', 'year'),
            [datetime.datetime(2011, 1, 1, 0, 0, 0, tzinfo=EAT)],
            transform=lambda d: d)
        self.assertQuerysetEqual(
            Event.objects.datetimes('dt', 'month'),
            [datetime.datetime(2011, 1, 1, 0, 0, 0, tzinfo=EAT)],
            transform=lambda d: d)
        self.assertQuerysetEqual(
            Event.objects.datetimes('dt', 'day'),
            [datetime.datetime(2011, 1, 1, 0, 0, 0, tzinfo=EAT)],
            transform=lambda d: d)
        self.assertQuerysetEqual(
            Event.objects.datetimes('dt', 'hour'),
            [datetime.datetime(2011, 1, 1, 1, 0, 0, tzinfo=EAT),
             datetime.datetime(2011, 1, 1, 4, 0, 0, tzinfo=EAT)],
            transform=lambda d: d)
        self.assertQuerysetEqual(
            Event.objects.datetimes('dt', 'minute'),
            [datetime.datetime(2011, 1, 1, 1, 30, 0, tzinfo=EAT),
             datetime.datetime(2011, 1, 1, 4, 30, 0, tzinfo=EAT)],
            transform=lambda d: d)
        self.assertQuerysetEqual(
            Event.objects.datetimes('dt', 'second'),
            [datetime.datetime(2011, 1, 1, 1, 30, 0, tzinfo=EAT),
             datetime.datetime(2011, 1, 1, 4, 30, 0, tzinfo=EAT)],
            transform=lambda d: d) </s> remove         self.assertQuerysetEqual(Event.objects.datetimes('dt', 'year'),
                [datetime.datetime(2011, 1, 1, 0, 0, 0)],
                transform=lambda d: d)
        self.assertQuerysetEqual(Event.objects.datetimes('dt', 'month'),
                [datetime.datetime(2011, 1, 1, 0, 0, 0)],
                transform=lambda d: d)
        self.assertQuerysetEqual(Event.objects.datetimes('dt', 'day'),
                [datetime.datetime(2011, 1, 1, 0, 0, 0)],
                transform=lambda d: d)
        self.assertQuerysetEqual(Event.objects.datetimes('dt', 'hour'),
                [datetime.datetime(2011, 1, 1, 1, 0, 0),
                 datetime.datetime(2011, 1, 1, 4, 0, 0)],
                transform=lambda d: d)
        self.assertQuerysetEqual(Event.objects.datetimes('dt', 'minute'),
                [datetime.datetime(2011, 1, 1, 1, 30, 0),
                 datetime.datetime(2011, 1, 1, 4, 30, 0)],
                transform=lambda d: d)
        self.assertQuerysetEqual(Event.objects.datetimes('dt', 'second'),
                [datetime.datetime(2011, 1, 1, 1, 30, 0),
                 datetime.datetime(2011, 1, 1, 4, 30, 0)],
                transform=lambda d: d)
 </s> add         self.assertQuerysetEqual(
            Event.objects.datetimes('dt', 'year'),
            [datetime.datetime(2011, 1, 1, 0, 0, 0)],
            transform=lambda d: d)
        self.assertQuerysetEqual(
            Event.objects.datetimes('dt', 'month'),
            [datetime.datetime(2011, 1, 1, 0, 0, 0)],
            transform=lambda d: d)
        self.assertQuerysetEqual(
            Event.objects.datetimes('dt', 'day'),
            [datetime.datetime(2011, 1, 1, 0, 0, 0)],
            transform=lambda d: d)
        self.assertQuerysetEqual(
            Event.objects.datetimes('dt', 'hour'),
            [datetime.datetime(2011, 1, 1, 1, 0, 0),
             datetime.datetime(2011, 1, 1, 4, 0, 0)],
            transform=lambda d: d)
        self.assertQuerysetEqual(
            Event.objects.datetimes('dt', 'minute'),
            [datetime.datetime(2011, 1, 1, 1, 30, 0),
             datetime.datetime(2011, 1, 1, 4, 30, 0)],
            transform=lambda d: d)
        self.assertQuerysetEqual(
            Event.objects.datetimes('dt', 'second'),
            [datetime.datetime(2011, 1, 1, 1, 30, 0),
             datetime.datetime(2011, 1, 1, 4, 30, 0)],
            transform=lambda d: d)
            repr(datetime.datetime.fromtimestamp(ts, tz)),
            'datetime.datetime(2010, 11, 7, 1, 0, tzinfo=EST)')
          self.assertEqual(
                  repr(datetime.datetime.fromtimestamp(ts - 3600, tz)),
                  'datetime.datetime(2010, 11, 7, 0, 0, tzinfo=EST)')
          self.assertEqual(
            repr(datetime.datetime.fromtimestamp(ts, tz)),
            'datetime.datetime(2010, 11, 7, 1, 0, tzinfo=EST)')
            repr(datetime.datetime.fromtimestamp(ts, tz)),
            'datetime.datetime(2010, 11, 7, 1, 0, tzinfo=EST)')
          self.assertEqual(
                  repr(datetime.datetime.fromtimestamp(ts + 3600, tz)),
                  'datetime.datetime(2010, 11, 7, 1, 0, tzinfo=EST)')
  
      def test_copy(self):
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #21288 -- Fixed E126 pep8 warnings 
tests/utils_tests/test_tzinfo.py