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

Method testInvalidFile

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

Source from the content-addressed store, hash-verified

2014 "EST")
2015
2016 def testInvalidFile(self):
2017 # Should throw a ValueError if an invalid file is passed
2018 with self.assertRaises(ValueError):
2019 tz.tzfile(BytesIO(b'BadFile'))
2020
2021 def testFilestreamWithNameRepr(self):
2022 # 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