import os from os.path import dirname, isfile, join import pytz pytz_dir = dirname(pytz.__file__) print('pytz_dir: %r' % pytz_dir) assert isfile(join(pytz_dir, 'zoneinfo', 'zone.tab')) assert len(os.listdir(join(pytz_dir, 'zoneinfo'))) > 10