(self)
| 457 | ) |
| 458 | |
| 459 | async def test_send(self): |
| 460 | c = async_client.AsyncClient() |
| 461 | c.emit = mock.AsyncMock() |
| 462 | await c.send('data', 'namespace', 'callback') |
| 463 | c.emit.assert_awaited_once_with( |
| 464 | 'message', data='data', namespace='namespace', callback='callback' |
| 465 | ) |
| 466 | |
| 467 | async def test_send_with_defaults(self): |
| 468 | c = async_client.AsyncClient() |