예제 #1
0
    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)
예제 #2
0
 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)
예제 #3
0
파일: test_when.py 프로젝트: MVReddy/WhenPy
 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)