499a7d3d8309325e18f5ab105585b369dc57ad94
10 async def test_status(event_loop
):
11 async with base
.CleanModel() as model
:
14 application_name
='ubuntu',
19 await asyncio
.wait_for(
20 model
.block_until(lambda: len(model
.machines
)),
22 machine
= model
.machines
['0']
24 assert machine
.status
in ('allocating', 'pending')
25 assert machine
.agent_status
== 'pending'
26 assert not machine
.agent_version
28 await asyncio
.wait_for(
29 model
.block_until(lambda: (machine
.status
== 'running' and
30 machine
.agent_status
== 'started')),
33 assert machine
.status
== 'running'
34 # there is some inconsistency in the message case between providers
35 assert machine
.status_message
.lower() == 'running'
36 assert machine
.agent_status
== 'started'
37 assert machine
.agent_version
.major
>= 2