def METHOD_NAME(self):
    self.reader.feed_eof()
    with self.assertRaises(EOFError) as raised:
        self.reader.feed_eof()
    self.assertEqual(
        str(raised.exception),
        "stream ended",
    )