You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dda-python-terraform/test/test_terraform.py

16 lines
302 B
Python

8 years ago
from python_terraform import Terraform
9 years ago
class TestTerraform:
8 years ago
def test_apply_and_destory(self):
tf = Terraform()
ret_code, out, err = tf.apply()
9 years ago
8 years ago
print out
print err
# assert ret_code, 0
9 years ago
8 years ago
ret_code, out, err = tf.destroy()
9 years ago
8 years ago
assert ret_code, 0