def METHOD_NAME(self):
    # https://github.com/IronLanguages/ironpython2/issues/118
    data = '2015-03-19T16:00:35+0200'
    dt = datetime.datetime(2015, 3, 19, 16, 0, 35, tzinfo=datetime.timezone(datetime.timedelta(0, 7200)))
    fmt = '%Y-%m-%dT%H:%M:%S%z'
    self.assertEqual(datetime.datetime.strptime(data, fmt), dt)
    data = '2015-03-19T16:00:35+02:00'
    if sys.version_info >= (3,7):
        self.assertEqual(datetime.datetime.strptime(data, fmt), dt)
    else:
        with self.assertRaises(ValueError):
            datetime.datetime.strptime(data, fmt)