def test_timezones(self): # Make sure all_timezones() matches pytz's versions all_timezones = when.all_timezones() self.assertEqual(all_timezones, pytz.all_timezones) all_timezones_set = when.all_timezones_set() self.assertEqual(all_timezones_set, pytz.all_timezones_set) # Make sure common_timezones() matches pytz's versions common_timezones = when.common_timezones() self.assertEqual(common_timezones, pytz.common_timezones) common_timezones_set = when.common_timezones_set() self.assertEqual(common_timezones_set, pytz.common_timezones_set)
def test_common_timezones(self): """Test when.common_timezones()""" # Make sure common_timezones() matches pytz's version common_timezones = when.common_timezones() self.assertEqual(common_timezones, pytz.common_timezones)