Beispiel #1
0
async def test_CONNECTED_BEFORE_ACK() -> None:
    s = bcs.CONNECTED_BEFORE_ACK()
    c = MockConnection()
    await s.run(c)
    assert c.state == "_wait_for_ack"
def test_CONNECTED_BEFORE_ACK():
    s = bcs.CONNECTED_BEFORE_ACK()
    r = s.run(_MockConnection())
    assert r.result() == "_wait_for_ack"
Beispiel #3
0
async def test_CONNECTED_BEFORE_ACK() -> None:
    s = bcs.CONNECTED_BEFORE_ACK()
    r = await s.run(MockConnection())
    assert r == "_wait_for_ack"