Skip to content

Commit 0dc32a5

Browse files
committed
fix: assertion
1 parent 77bc0dc commit 0dc32a5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/integration/test_machine.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import pytest
88

99
from .. import base
10+
from juju.machine import Machine
1011

1112

1213
@base.bootstrapped
@@ -65,3 +66,12 @@ async def test_scp(event_loop):
6566
with NamedTemporaryFile() as f:
6667
await machine.scp_from('testfile', f.name, scp_opts='-p')
6768
assert f.read() == b'testcontents'
69+
70+
71+
async def test_machine_ssh():
72+
async with base.CleanModel() as model:
73+
machine: Machine = await model.add_machine()
74+
await machine.wait()
75+
out = await machine.ssh("echo hello world!")
76+
77+
assert out == "hello world!\n"

0 commit comments

Comments
 (0)