def utc_roundtrip(self, tz_name):
tzinfo = pytz.timezone(tz_name)<EOL>dt1 = tzinfo.localize(datetime.utcnow())<EOL>timestamp = generate(dt1, utc=False, microseconds=True)<EOL>dt2 = parse(timestamp)<EOL>eq_(dt1, dt2)<EOL>
Generates a local datetime using the given timezone,
produces a local timestamp from the datetime, parses the timestamp
to a UTC datetime, and verifies that the two datetimes are equal.