(node_factory)
| 326 | |
| 327 | |
| 328 | def test_balance(node_factory): |
| 329 | l1, l2 = node_factory.line_graph(2, fundchannel=True) |
| 330 | p1 = only_one(l1.rpc.listpeerchannels(peer_id=l2.info['id'])['channels']) |
| 331 | p2 = only_one(l2.rpc.listpeerchannels(l1.info['id'])['channels']) |
| 332 | assert p1['to_us_msat'] == 10**6 * 1000 |
| 333 | assert p1['total_msat'] == 10**6 * 1000 |
| 334 | assert p2['to_us_msat'] == 0 |
| 335 | assert p2['total_msat'] == 10**6 * 1000 |
| 336 | |
| 337 | |
| 338 | @unittest.skipIf(TEST_NETWORK != 'regtest', "Fee computation and limits are network specific") |
nothing calls this directly
no test coverage detected