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

Method testStrInequality

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

Source from the content-addressed store, hash-verified

1512 )
1513
1514 def testStrInequality(self):
1515 TZS1 = tz.tzstr('EST5EDT4')
1516
1517 # Standard abbreviation different
1518 TZS2 = tz.tzstr('ET5EDT4')
1519 self.assertNotEqual(TZS1, TZS2)
1520
1521 # DST abbreviation different
1522 TZS3 = tz.tzstr('EST5EMT')
1523 self.assertNotEqual(TZS1, TZS3)
1524
1525 # STD offset different
1526 TZS4 = tz.tzstr('EST4EDT4')
1527 self.assertNotEqual(TZS1, TZS4)
1528
1529 # DST offset different
1530 TZS5 = tz.tzstr('EST5EDT3')
1531 self.assertNotEqual(TZS1, TZS5)
1532
1533 def testStrInequalityStartEnd(self):
1534 TZS1 = tz.tzstr('EST5EDT4')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected