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

Method testInvalidFile

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

Source from the content-addressed store, hash-verified

2118 "EST")
2119
2120 def testInvalidFile(self):
2121 # Should throw a ValueError if an invalid file is passed
2122 with self.assertRaises(ValueError):
2123 tz.tzfile(BytesIO(b'BadFile'))
2124
2125 def testFilestreamWithNameRepr(self):
2126 # If fileobj is a filestream with a "name" attribute this name should

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected