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

Method testPosixOffset

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

Source from the content-addressed store, hash-verified

1463 self.assertNotEqual(TZS1, TZS3)
1464
1465 def testPosixOffset(self):
1466 TZ1 = tz.tzstr('UTC-3')
1467 self.assertEqual(datetime(2015, 1, 1, tzinfo=TZ1).utcoffset(),
1468 timedelta(hours=-3))
1469
1470 TZ2 = tz.tzstr('UTC-3', posix_offset=True)
1471 self.assertEqual(datetime(2015, 1, 1, tzinfo=TZ2).utcoffset(),
1472 timedelta(hours=+3))
1473
1474 def testStrInequalityUnsupported(self):
1475 TZS = tz.tzstr('EST5EDT')

Callers

nothing calls this directly

Calls 1

utcoffsetMethod · 0.45

Tested by

no test coverage detected