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

Method testStrInequality

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

Source from the content-addressed store, hash-verified

1433 tzinfo=tz.tzstr(str("EST5EDT"))).tzname(), "EDT")
1434
1435 def testStrInequality(self):
1436 TZS1 = tz.tzstr('EST5EDT4')
1437
1438 # Standard abbreviation different
1439 TZS2 = tz.tzstr('ET5EDT4')
1440 self.assertNotEqual(TZS1, TZS2)
1441
1442 # DST abbreviation different
1443 TZS3 = tz.tzstr('EST5EMT')
1444 self.assertNotEqual(TZS1, TZS3)
1445
1446 # STD offset different
1447 TZS4 = tz.tzstr('EST4EDT4')
1448 self.assertNotEqual(TZS1, TZS4)
1449
1450 # DST offset different
1451 TZS5 = tz.tzstr('EST5EDT3')
1452 self.assertNotEqual(TZS1, TZS5)
1453
1454 def testStrInequalityStartEnd(self):
1455 TZS1 = tz.tzstr('EST5EDT4')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected