(self)
| 615 | ) |
| 616 | |
| 617 | def test_send(self): |
| 618 | c = client.Client() |
| 619 | c.emit = mock.MagicMock() |
| 620 | c.send('data', 'namespace', 'callback') |
| 621 | c.emit.assert_called_once_with( |
| 622 | 'message', data='data', namespace='namespace', callback='callback' |
| 623 | ) |
| 624 | |
| 625 | def test_send_with_defaults(self): |
| 626 | c = client.Client() |