(self)
| 1044 | # close |
| 1045 | |
| 1046 | def test_close_single_user(self): |
| 1047 | cid = _channels.create(REPLACE) |
| 1048 | _channels.send(cid, b'spam', blocking=False) |
| 1049 | recv_nowait(cid) |
| 1050 | _channels.close(cid) |
| 1051 | |
| 1052 | with self.assertRaises(_channels.ChannelClosedError): |
| 1053 | _channels.send(cid, b'eggs') |
| 1054 | with self.assertRaises(_channels.ChannelClosedError): |
| 1055 | _channels.recv(cid) |
| 1056 | |
| 1057 | def test_close_multiple_users(self): |
| 1058 | cid = _channels.create(REPLACE) |
nothing calls this directly
no test coverage detected