MCPcopy Create free account
hub / github.com/dateutil/dateutil / testTzStrRepr

Method testTzStrRepr

tests/test_tz.py:1560–1565  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1558 self.assertFalse(TZS != ComparesEqual)
1559
1560 def testTzStrRepr(self):
1561 TZS1 = tz.tzstr('EST5EDT4')
1562 TZS2 = tz.tzstr('EST')
1563
1564 self.assertEqual(repr(TZS1), "tzstr(" + repr('EST5EDT4') + ")")
1565 self.assertEqual(repr(TZS2), "tzstr(" + repr('EST') + ")")
1566
1567 def testTzStrFailure(self):
1568 with self.assertRaises(ValueError):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected