mirror of
https://github.com/cirruslabs/tart.git
synced 2026-09-30 03:01:12 +02:00
* Integration tests * Set "HOMEBREW_NO_AUTO_UPDATE=1" for virtualenv installation step * Use CIRRUS_WORKING_DIR as temporary directory if present
15 lines
409 B
Python
15 lines
409 B
Python
def test_delete(tart):
|
|
# Create a Linux VM (because we can create it really fast)
|
|
tart.run(["create", "--linux", "debian"])
|
|
|
|
# Ensure that the VM exists
|
|
stdout, _, = tart.run(["list", "--quiet"])
|
|
assert stdout == "debian\n"
|
|
|
|
# Delete the VM
|
|
tart.run(["delete", "debian"])
|
|
|
|
# Ensure that the VM was removed
|
|
stdout, _, = tart.run(["list", "--quiet"])
|
|
assert stdout == ""
|