MCPcopy
hub / github.com/aio-libs/aiohttp / test_exception

Method test_exception

tests/test_streams.py:417–423  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

415 self.assertEqual(b'at_eof', data)
416
417 def test_exception(self):
418 stream = self._make_one()
419 self.assertIsNone(stream.exception())
420
421 exc = ValueError()
422 stream.set_exception(exc)
423 self.assertIs(stream.exception(), exc)
424
425 def test_exception_waiter(self):
426 stream = self._make_one()

Callers

nothing calls this directly

Calls 3

_make_oneMethod · 0.95
exceptionMethod · 0.45
set_exceptionMethod · 0.45

Tested by

no test coverage detected