Make Machine.destroy() block
authorTim Van Steenburgh <tvansteenburgh@gmail.com>
Fri, 24 Feb 2017 14:39:08 +0000 (09:39 -0500)
committerTim Van Steenburgh <tvansteenburgh@gmail.com>
Fri, 24 Feb 2017 14:39:08 +0000 (09:39 -0500)
commite2a3f01e7bb983ac3cd8eb24117e0d4208b40cc9
treec3488aaf3cfea85319d3fb2071794df881c31133
parent21ba8065355c663597df7bd2b481ade519f89a79
Make Machine.destroy() block

Block the current coro until the machine is actually removed
from the remote model. This follows the same pattern as other
operations, e.g. Model.deploy().

Also clean up tests, making each functional test run on its
own clean model.
examples/add_machine.py
juju/machine.py
juju/model.py
tests/base.py
tests/client/test_client.py
tests/client/test_connection.py
tests/functional/test_model.py