MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_extreme_tzstr

Method test_extreme_tzstr

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

Source from the content-addressed store, hash-verified

1034 self.assertEqual(dt_act, dt_utc)
1035
1036 def test_extreme_tzstr(self):
1037 tzstrs = [
1038 # Extreme offset hour
1039 "AAA24",
1040 "AAA+24",
1041 "AAA-24",
1042 "AAA24BBB,J60/2,J300/2",
1043 "AAA+24BBB,J60/2,J300/2",
1044 "AAA-24BBB,J60/2,J300/2",
1045 "AAA4BBB24,J60/2,J300/2",
1046 "AAA4BBB+24,J60/2,J300/2",
1047 "AAA4BBB-24,J60/2,J300/2",
1048 # Extreme offset minutes
1049 "AAA4:00BBB,J60/2,J300/2",
1050 "AAA4:59BBB,J60/2,J300/2",
1051 "AAA4BBB5:00,J60/2,J300/2",
1052 "AAA4BBB5:59,J60/2,J300/2",
1053 # Extreme offset seconds
1054 "AAA4:00:00BBB,J60/2,J300/2",
1055 "AAA4:00:59BBB,J60/2,J300/2",
1056 "AAA4BBB5:00:00,J60/2,J300/2",
1057 "AAA4BBB5:00:59,J60/2,J300/2",
1058 # Extreme total offset
1059 "AAA24:59:59BBB5,J60/2,J300/2",
1060 "AAA-24:59:59BBB5,J60/2,J300/2",
1061 "AAA4BBB24:59:59,J60/2,J300/2",
1062 "AAA4BBB-24:59:59,J60/2,J300/2",
1063 # Extreme months
1064 "AAA4BBB,M12.1.1/2,M1.1.1/2",
1065 "AAA4BBB,M1.1.1/2,M12.1.1/2",
1066 # Extreme weeks
1067 "AAA4BBB,M1.5.1/2,M1.1.1/2",
1068 "AAA4BBB,M1.1.1/2,M1.5.1/2",
1069 # Extreme weekday
1070 "AAA4BBB,M1.1.6/2,M2.1.1/2",
1071 "AAA4BBB,M1.1.1/2,M2.1.6/2",
1072 # Extreme numeric offset
1073 "AAA4BBB,0/2,20/2",
1074 "AAA4BBB,0/2,0/14",
1075 "AAA4BBB,20/2,365/2",
1076 "AAA4BBB,365/2,365/14",
1077 # Extreme julian offset
1078 "AAA4BBB,J1/2,J20/2",
1079 "AAA4BBB,J1/2,J1/14",
1080 "AAA4BBB,J20/2,J365/2",
1081 "AAA4BBB,J365/2,J365/14",
1082 # Extreme transition hour
1083 "AAA4BBB,J60/167,J300/2",
1084 "AAA4BBB,J60/+167,J300/2",
1085 "AAA4BBB,J60/-167,J300/2",
1086 "AAA4BBB,J60/2,J300/167",
1087 "AAA4BBB,J60/2,J300/+167",
1088 "AAA4BBB,J60/2,J300/-167",
1089 # Extreme transition minutes
1090 "AAA4BBB,J60/2:00,J300/2",
1091 "AAA4BBB,J60/2:59,J300/2",
1092 "AAA4BBB,J60/2,J300/2:00",
1093 "AAA4BBB,J60/2,J300/2:59",

Callers

nothing calls this directly

Calls 2

zone_from_tzstrMethod · 0.95
subTestMethod · 0.80

Tested by

no test coverage detected