MCPcopy
hub / github.com/django/django / test_split_tzname_delta

Method test_split_tzname_delta

tests/backends/test_utils.py:76–91  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

74 equal("1234567890.1234", 5, None, "1234600000")
75
76 def test_split_tzname_delta(self):
77 tests = [
78 ("Asia/Ust+Nera", ("Asia/Ust+Nera", None, None)),
79 ("Asia/Ust-Nera", ("Asia/Ust-Nera", None, None)),
80 ("Asia/Ust+Nera-02:00", ("Asia/Ust+Nera", "-", "02:00")),
81 ("Asia/Ust-Nera+05:00", ("Asia/Ust-Nera", "+", "05:00")),
82 ("America/Coral_Harbour-01:00", ("America/Coral_Harbour", "-", "01:00")),
83 ("America/Coral_Harbour+02:30", ("America/Coral_Harbour", "+", "02:30")),
84 ("UTC+15:00", ("UTC", "+", "15:00")),
85 ("UTC-04:43", ("UTC", "-", "04:43")),
86 ("UTC", ("UTC", None, None)),
87 ("UTC+1", ("UTC+1", None, None)),
88 ]
89 for tzname, expected in tests:
90 with self.subTest(tzname=tzname):
91 self.assertEqual(split_tzname_delta(tzname), expected)
92
93
94class CursorWrapperTests(TransactionTestCase):

Callers

nothing calls this directly

Calls 1

split_tzname_deltaFunction · 0.90

Tested by

no test coverage detected