(self)
| 718 | self.assertTrue(received[0]['args'] == 'echo this message back') |
| 719 | |
| 720 | def test_send_json_class_based(self): |
| 721 | client = socketio.test_client(app, namespace='/ns') |
| 722 | client.get_received('/ns') |
| 723 | client.send({'a': 'b'}, json=True, namespace='/ns') |
| 724 | received = client.get_received('/ns') |
| 725 | self.assertEqual(len(received), 1) |
| 726 | self.assertEqual(received[0]['args']['a'], 'b') |
| 727 | |
| 728 | def test_server_disconnected(self): |
| 729 | client = socketio.test_client(app, namespace='/ns') |
nothing calls this directly
no test coverage detected