I am just using the regular library ( not pytest) and trying to confirm a ValueError.
test:
data = get_time_zone("sun/10-21 tz:US/Eas2tern")
Result:
if zone not in pytz.all_timezones:
raise ValueError("Invalid Time Zone Used: " + time_zone)
>>> ValueError: Invalid Time Zone Used: US/Eas2tern
I would like to test it with a similar structure;
Assert "valueError" etc...