MCPcopy Index your code
hub / github.com/python/cpython / test_extreme_tzstr

Method test_extreme_tzstr

Lib/test/test_zoneinfo/test_zoneinfo.py:1068–1140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1066 self.assertEqual(dt_act, dt_utc)
1067
1068 def test_extreme_tzstr(self):
1069 tzstrs = [
1070 # Extreme offset hour
1071 "AAA24",
1072 "AAA+24",
1073 "AAA-24",
1074 "AAA24BBB,J60/2,J300/2",
1075 "AAA+24BBB,J60/2,J300/2",
1076 "AAA-24BBB,J60/2,J300/2",
1077 "AAA4BBB24,J60/2,J300/2",
1078 "AAA4BBB+24,J60/2,J300/2",
1079 "AAA4BBB-24,J60/2,J300/2",
1080 # Extreme offset minutes
1081 "AAA4:00BBB,J60/2,J300/2",
1082 "AAA4:59BBB,J60/2,J300/2",
1083 "AAA4BBB5:00,J60/2,J300/2",
1084 "AAA4BBB5:59,J60/2,J300/2",
1085 # Extreme offset seconds
1086 "AAA4:00:00BBB,J60/2,J300/2",
1087 "AAA4:00:59BBB,J60/2,J300/2",
1088 "AAA4BBB5:00:00,J60/2,J300/2",
1089 "AAA4BBB5:00:59,J60/2,J300/2",
1090 # Extreme total offset
1091 "AAA24:59:59BBB5,J60/2,J300/2",
1092 "AAA-24:59:59BBB5,J60/2,J300/2",
1093 "AAA4BBB24:59:59,J60/2,J300/2",
1094 "AAA4BBB-24:59:59,J60/2,J300/2",
1095 # Extreme months
1096 "AAA4BBB,M12.1.1/2,M1.1.1/2",
1097 "AAA4BBB,M1.1.1/2,M12.1.1/2",
1098 # Extreme weeks
1099 "AAA4BBB,M1.5.1/2,M1.1.1/2",
1100 "AAA4BBB,M1.1.1/2,M1.5.1/2",
1101 # Extreme weekday
1102 "AAA4BBB,M1.1.6/2,M2.1.1/2",
1103 "AAA4BBB,M1.1.1/2,M2.1.6/2",
1104 # Extreme numeric offset
1105 "AAA4BBB,0/2,20/2",
1106 "AAA4BBB,0/2,0/14",
1107 "AAA4BBB,20/2,365/2",
1108 "AAA4BBB,365/2,365/14",
1109 # Extreme julian offset
1110 "AAA4BBB,J1/2,J20/2",
1111 "AAA4BBB,J1/2,J1/14",
1112 "AAA4BBB,J20/2,J365/2",
1113 "AAA4BBB,J365/2,J365/14",
1114 # Extreme transition hour
1115 "AAA4BBB,J60/167,J300/2",
1116 "AAA4BBB,J60/+167,J300/2",
1117 "AAA4BBB,J60/-167,J300/2",
1118 "AAA4BBB,J60/2,J300/167",
1119 "AAA4BBB,J60/2,J300/+167",
1120 "AAA4BBB,J60/2,J300/-167",
1121 # Extreme transition minutes
1122 "AAA4BBB,J60/2:00,J300/2",
1123 "AAA4BBB,J60/2:59,J300/2",
1124 "AAA4BBB,J60/2,J300/2:00",
1125 "AAA4BBB,J60/2,J300/2:59",

Callers

nothing calls this directly

Calls 2

zone_from_tzstrMethod · 0.95
subTestMethod · 0.45

Tested by

no test coverage detected