| Conditions | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import aiohttp_rpc |
||
| 39 | async def test_adding_methods(): |
||
| 40 | def method_1(): |
||
| 41 | pass |
||
| 42 | |||
| 43 | def method_2(): |
||
| 44 | pass |
||
| 45 | |||
| 46 | rpc_server = aiohttp_rpc.JsonRpcServer() |
||
| 47 | |||
| 48 | rpc_server.add_methods([method_1, method_2]) |
||
| 49 | assert rpc_server.methods['method_1'].func == method_1 |
||
| 50 | assert rpc_server.methods['method_2'].func == method_2 |
||
| 51 |