':py:obj:`Connection.bio_shutdown` signals the end of the data stream from
which the :py:obj:`Connection` reads.'

def test_shutdown(self):

    server = self._server(None)
    server.bio_shutdown()
    e = self.assertRaises(Error, server.recv, 1024)
    self.assertEquals(e.__class__, Error)
