mirror of
https://github.com/cirruslabs/tart.git
synced 2026-09-30 11:12:19 +02:00
* Add a simple integration test for "tart run" * Integration tests: only "tart list" local VM images
11 lines
347 B
Python
11 lines
347 B
Python
def test_rename(tart):
|
|
# Create a Linux VM (because we can create it really fast)
|
|
tart.run(["create", "--linux", "debian"])
|
|
|
|
# Rename that VM
|
|
tart.run(["rename", "debian", "ubuntu"])
|
|
|
|
# Ensure that the VM is now named "ubuntu"
|
|
stdout, _, = tart.run(["list", "--source", "local", "--quiet"])
|
|
assert stdout == "ubuntu\n"
|