def test_snapping_5a(self):
        layer_name = 'snap_test_5a'
        expected_date = datetime.date(2002, 12, 01)
        while (expected_date.year < 2012):
            end_date = expected_date.replace(year=expected_date.year + 1) + datetime.timedelta(days=-1)
            req_date = expected_date
            while (end_date < req_date):
                req_url = self.snap_test_url_template.format(layer_name, req_date)
                response_date = test_snap_request(self.tile_hashes, req_url)
                error = 'Snapping test 5a requested date {0}, expected {1}, but got {2}. \nURL: {3}'.format(req_date.isoformat(), expected_date.isoformat(), response_date, req_url)
                self.assertEqual(expected_date.isoformat(), response_date, error)
                req_date += datetime.timedelta(days=+1)
            # pdb.set_trace()
            expected_date = expected_date.replace(expected_date.year + 1)

    # TEARDOWN
dataset/ETHPy150Open nasa-gibs/onearth/src/test/test_mod_onearth.py/TestModOnEarth.test_snapping_5a/swapped operands of `<`